add() public method

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