public function __construct(array $operations = []) { foreach ($operations as $operation) { $this->addOperation($operation); } }