setSuccessor() public method

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
Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public final function setSuccessor(HandlerInterface $handler)
 {
     $this->setFirstChain();
     if ($this->successor === null) {
         $this->successor = $handler;
     } else {
         $this->successor->setSuccessor($handler);
     }
 }