/** * @inheritdoc */ public function getName($prenamed = null, $dottedNotation = false) { if (null === $this->name) { return $this->prename; } return parent::getName($prenamed, $dottedNotation); }
/** * Internal use only. Should be called when a change occurs * on the parents and the info related to the parent need to be updated */ public function refreshParent() { if ($this->parent) { $this->setNamespace($this->parent->getName(true, true)); $this->setInternalNamespace($this->parent->getInternalName(true)); } }