Plum\Plum\Pipe\AbstractPipe::getPosition PHP Метод

getPosition() публичный Метод

public getPosition ( ) : integer
Результат integer
    public function getPosition()
    {
        return $this->position;
    }

Usage Example

Пример #1
0
 /**
  * Inserts an element into the pipeline at the given position.
  *
  * @param AbstractPipe $pipe
  *
  * @return Workflow
  */
 protected function addPipe(AbstractPipe $pipe)
 {
     if ($pipe->getPosition() === self::PREPEND) {
         array_unshift($this->pipeline, $pipe);
     } else {
         $this->pipeline[] = $pipe;
     }
     return $this;
 }