Get alias. If not explicitly given this is the last component of the used name.
public function getAlias() : Identifier { if (null !== $this->alias) { return $this->alias; } return new Identifier($this->name ->getLast()); }