PhpSpec\Wrapper\Subject\Expectation\DispatcherDecorator::__construct PHP Method

__construct() public method

public __construct ( PhpSpec\Wrapper\Subject\Expectation\Expectation $expectation, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, PhpSpec\Matcher\Matcher $matcher, ExampleNode $example )
$expectation PhpSpec\Wrapper\Subject\Expectation\Expectation
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$matcher PhpSpec\Matcher\Matcher
$example PhpSpec\Loader\Node\ExampleNode
    public function __construct(Expectation $expectation, EventDispatcherInterface $dispatcher, Matcher $matcher, ExampleNode $example)
    {
        $this->setExpectation($expectation);
        $this->dispatcher = $dispatcher;
        $this->matcher = $matcher;
        $this->example = $example;
    }
DispatcherDecorator