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;
}