fqsen = $fqsen; if (isset($matches[2])) { $this->name = $matches[2]; } else { $matches = explode('\\', $fqsen); $this->name = trim(end($matches), '()'); } } /** * converts this class to string. * * @return string */ public function __toString() { return $this->fqsen; } /** * Returns the name of the element without path. * * @return string */ public function getName() { return $this->name; } }