Sets a successor handler,
in case the class is not able to satisfy the request.
public setSuccessor ( Fakerino\Core\FakeHandler\HandlerInterface $handler ) | ||
$handler | Fakerino\Core\FakeHandler\HandlerInterface |
/** * {@inheritdoc} */ public final function setSuccessor(HandlerInterface $handler) { $this->setFirstChain(); if ($this->successor === null) { $this->successor = $handler; } else { $this->successor->setSuccessor($handler); } }