/**
* Evaluate operations
*
* @return mixed the last operation result if the operation is a final operation, NULL otherwise
*/
protected function evaluateOperations()
{
while ($op = array_shift($this->operations)) {
$operation = $this->operationResolver->resolveOperation($op['name'], $this->context);
$lastOperationResult = $operation->evaluate($this, $op['arguments']);
}
return $lastOperationResult;
}