PHP 클래스 Visithor\Executor\Executor

상속: implements Visithor\Executor\Interfaces\ExecutorInterface
파일 보기 프로젝트 열기: visithor/visithor 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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