PHP Class Visithor\Executor\Executor

Inheritance: implements Visithor\Executor\Interfaces\ExecutorInterface
Show file Open project: visithor/visithor Class Usage Examples

Protected Properties

Property Type Description
$client Visithor\Client\Interfaces\ClientInterface Client

Public Methods

Method Description
__construct ( Visithor\Client\Interfaces\ClientInterface $client ) Construct
build ( ) Build
destroy ( ) Destroy
execute ( UrlChain $urlChain, Visithor\Renderer\Interfaces\RendererInterface $renderer, Symfony\Component\Console\Output\OutputInterface $output ) : integer Renders the output of the result of executing some urls given a client instance

Protected Methods

Method Description
executeUrl ( Visithor\Client\Interfaces\ClientInterface $client, Url $url, Visithor\Renderer\Interfaces\RendererInterface $renderer, Symfony\Component\Console\Output\OutputInterface $output ) : boolean Executes an URL and render the result given a renderer.

Method Details

__construct() public method

Construct
public __construct ( Visithor\Client\Interfaces\ClientInterface $client )
$client Visithor\Client\Interfaces\ClientInterface Client

build() public method

Build
public build ( )

destroy() public method

Destroy
public destroy ( )

execute() public method

If all urls are executed as expected, then the result of the operation will be 0. Otherwise, the result will be 1.
public execute ( UrlChain $urlChain, Visithor\Renderer\Interfaces\RendererInterface $renderer, Symfony\Component\Console\Output\OutputInterface $output ) : integer
$urlChain Visithor\Model\UrlChain Url chain
$renderer Visithor\Renderer\Interfaces\RendererInterface Renderer
$output Symfony\Component\Console\Output\OutputInterface Output
return integer Result of the execution

executeUrl() protected method

If the url is executed as expected, then the result of the operation will be 0. Otherwise, the result will be 1.
protected executeUrl ( Visithor\Client\Interfaces\ClientInterface $client, Url $url, Visithor\Renderer\Interfaces\RendererInterface $renderer, Symfony\Component\Console\Output\OutputInterface $output ) : boolean
$client Visithor\Client\Interfaces\ClientInterface Client
$url Visithor\Model\Url Url
$renderer Visithor\Renderer\Interfaces\RendererInterface Renderer
$output Symfony\Component\Console\Output\OutputInterface Output
return boolean Result of the execution

Property Details

$client protected property

Client
protected ClientInterface,Visithor\Client\Interfaces $client
return Visithor\Client\Interfaces\ClientInterface