Neos\Eel\FlowQuery\FlowQuery::__construct PHP Method

__construct() public method

Only the $context parameter belongs to the public API! If a FlowQuery is given as the $context we unwrap its context to assert q(q(context)) == q(context).
public __construct ( array | Traversable $context, array $operations = [] )
$context array | Traversable The initial context (wrapped objects) for this FlowQuery
$operations array
    public function __construct($context, array $operations = [])
    {
        if (!(is_array($context) || $context instanceof \Traversable)) {
            throw new Exception('The FlowQuery context must be an array or implement \\Traversable but context was a ' . gettype($context), 1380816689);
        }
        if ($context instanceof FlowQuery) {
            $this->context = $context->getContext();
        } else {
            $this->context = $context;
        }
        $this->operations = $operations;
    }