PHP Class Visithor\Executor\Executor

Inheritance: implements Visithor\Executor\Interfaces\ExecutorInterface
Afficher le fichier Open project: visithor/visithor Class Usage Examples

Protected Properties

Свойство Type Description
$client Visithor\Client\Interfaces\ClientInterface Client

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

build() public méthode

Build
public build ( )

destroy() public méthode

Destroy
public destroy ( )

execute() public méthode

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
Résultat integer Result of the execution

executeUrl() protected méthode

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
Résultat boolean Result of the execution

Property Details

$client protected_oe property

Client
protected ClientInterface,Visithor\Client\Interfaces $client
Résultat Visithor\Client\Interfaces\ClientInterface