Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function getName($prenamed = null, $dottedNotation = false)
 {
     if (null === $this->name) {
         return $this->prename;
     }
     return parent::getName($prenamed, $dottedNotation);
 }
Exemplo n.º 2
0
 /**
  * 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));
     }
 }