/** * Returns the whole definition in array form * * @return array Definition */ public function getDefAsArray() { return array_replace($this->element->getDefAsArray(), ['name' => $this->getName(), 'type' => $this->getType(), 'doctrineType' => $this->getTypeDoctrine(), 'serializerType' => $this->getTypeSerializer()]); }