type = $type; $this->name = $name; $this->alias = \is_string($alias) ? new Identifier($alias) : $alias; } public function getSubNodeNames() { return array('type', 'name', 'alias'); } /** * Get alias. If not explicitly given this is the last component of the used name. * * @return Identifier */ public function getAlias() { if (null !== $this->alias) { return $this->alias; } return new Identifier($this->name->getLast()); } }