Exemple #1
0
 /**
  * Pipes command to the next filter
  *
  * @param CommandMessage $message The command message
  *
  * @return void
  */
 public function pipe(CommandMessage $message)
 {
     $filter = $this->filters->pop();
     $filter->process($message, [$this, 'pipe']);
 }
Exemple #2
0
 /**
  * Pipes query to the next filter
  *
  * @param QueryMessage $message The query message
  *
  * @return mixed
  */
 public function pipe(QueryMessage $message)
 {
     $filter = $this->filters->pop();
     return $filter->process($message, [$this, 'pipe']);
 }
Exemple #3
0
 /**
  * @expectedException \Novuso\System\Exception\UnderflowException
  */
 public function test_that_top_throws_exception_when_empty()
 {
     LinkedStack::of('int')->top();
 }
Exemple #4
0
 /**
  * Pipes command message to the next filter
  *
  * @param CommandMessage $message The command message
  *
  * @return void
  */
 public function pipe(CommandMessage $message)
 {
     /** @var CommandFilter $filter */
     $filter = $this->stack->pop();
     $filter->process($message, [$this, 'pipe']);
 }
Exemple #5
0
 /**
  * Pipes query message to the next filter
  *
  * @param QueryMessage $message The query message
  *
  * @return void
  */
 public function pipe(QueryMessage $message)
 {
     /** @var QueryFilter $filter */
     $filter = $this->stack->pop();
     $filter->process($message, [$this, 'pipe']);
 }