add() public method

Add a new operation in the buffer.
public add ( Tolerance\Operation\Operation $operation )
$operation Tolerance\Operation\Operation
Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function run(Operation $operation)
 {
     $this->buffer->add($operation);
     while (null !== ($operation = $this->buffer->current())) {
         $this->runner->run($operation);
         $this->buffer->pop();
     }
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function run(Operation $operation)
 {
     $this->buffer->add($operation);
 }