PHP Класс Visithor\Executor\Executor

Наследование: implements Visithor\Executor\Interfaces\ExecutorInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$client Visithor\Client\Interfaces\ClientInterface Client

Открытые методы

Метод Описание
__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

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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

build() публичный Метод

Build
public build ( )

destroy() публичный Метод

Destroy
public destroy ( )

execute() публичный Метод

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
Результат integer Result of the execution

executeUrl() защищенный Метод

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
Результат boolean Result of the execution

Описание свойств

$client защищенное свойство

Client
protected ClientInterface,Visithor\Client\Interfaces $client
Результат Visithor\Client\Interfaces\ClientInterface