Kraken\Channel\Router\RouterRule::setPointer PHP Method

setPointer() public method

public setPointer ( string $stack, integer $pointer )
$stack string
$pointer integer
    public function setPointer($stack, $pointer)
    {
        $this->pointer = [$stack, $pointer];
    }

Usage Example

Beispiel #1
0
 /**
  * @param RouterRule $handler
  * @return RouterRule
  */
 protected function addDefaultHandler(RouterRule $handler)
 {
     $this->anchors[$this->anchorsPointer] = $handler;
     $handler->setPointer('anchors', $this->anchorsPointer);
     $this->anchorsPointer++;
     return $handler;
 }