__construct() public method

public __construct ( MatcherManager $matchers, PhpSpec\Formatter\Presenter\Presenter $presenter, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, ExampleNode $example, PhpSpec\CodeAnalysis\AccessInspector $accessInspector = null )
$matchers PhpSpec\Runner\MatcherManager
$presenter PhpSpec\Formatter\Presenter\Presenter
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$example PhpSpec\Loader\Node\ExampleNode
$accessInspector PhpSpec\CodeAnalysis\AccessInspector
Beispiel #1
0
 /**
  * @param MatcherManager           $matchers
  * @param PresenterInterface       $presenter
  * @param EventDispatcherInterface $dispatcher
  * @param ExampleNode              $example
  */
 public function __construct(MatcherManager $matchers, PresenterInterface $presenter, EventDispatcherInterface $dispatcher, ExampleNode $example)
 {
     parent::__construct($matchers, $presenter, $dispatcher, $example);
     $this->matchers = $matchers;
     $this->presenter = $presenter;
     $this->dispatcher = $dispatcher;
     $this->example = $example;
 }