resolveOperation() public method

Resolve an operation, taking runtime constraints into account.
public resolveOperation ( string $operationName, array | mixed $context ) : Neos\Eel\FlowQuery\OperationInterface
$operationName string
$context array | mixed
return Neos\Eel\FlowQuery\OperationInterface the resolved operation
 /**
  * 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;
 }
 /**
  * @test
  */
 public function higherPriorityOverridesLowerPriority()
 {
     $this->assertInstanceOf(Fixtures\ExampleFinalOperationWithHigherPriority::class, $this->operationResolver->resolveOperation('exampleFinalOperation', []));
 }