public function toArray()
{
return $this->elements;
}
/** * Get parameters. * * @return array */ public function getParameters() { if (!$this->parameters instanceof ArrayCollection) { return []; } return $this->parameters->toArray(); }