PHP Interface Tolerance\Operation\Buffer\OperationBuffer

Show file Open project: sroze/tolerance Interface Usage Examples

Public Methods

Method Description
add ( Tolerance\Operation\Operation $operation ) Add a new operation in the buffer.
current ( ) : Tolerance\Operation\Operation | null Returns the current operation at the head of the buffer.
pop ( ) : Tolerance\Operation\Operation Pop the operation from the head of the buffer.

Method Details

add() public method

Add a new operation in the buffer.
public add ( Tolerance\Operation\Operation $operation )
$operation Tolerance\Operation\Operation

current() public method

Returns the current operation at the head of the buffer.
public current ( ) : Tolerance\Operation\Operation | null
return Tolerance\Operation\Operation | null

pop() public method

Pop the operation from the head of the buffer.
public pop ( ) : Tolerance\Operation\Operation
return Tolerance\Operation\Operation