+ public function getEntryName() {
+ return end($this->list);
+ }
+
+ public function getNsName() {
+ if ($this->isRoot()) {
+ return $this->getName();
+ } elseif ($this->isFunction()) {
+ $parts = explode("/", trim($this->getName(), "/"));
+ $self = array_pop($parts);
+ return implode("\\", $parts) . "::" . $self;
+ } else {
+ return strtr($this->getName(), "/", "\\");
+ }
+ }
+