public function __construct(ParameterBag $parameters, ObjectBag $objects) { $this->parameters = $parameters->toArray(); $this->objects = $objects->toArray(); }