X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/d9f6b83ed6d8a4546e4119c64b639adda057d25e..2a665e0f4eeb45c9d57df7dc7f9d853465b5fea9:/src/phorkie/Tool/Info.php diff --git a/src/phorkie/Tool/Info.php b/src/phorkie/Tool/Info.php index c1c3c69..2e95a9f 100644 --- a/src/phorkie/Tool/Info.php +++ b/src/phorkie/Tool/Info.php @@ -10,16 +10,35 @@ class Tool_Info $this->class = $class; } + /** + * Format the tool path + * + * @param File $file + * + * @return string + */ public function getLink(File $file) { return $file->getLink('tool', $this->stripPrefix($this->class)); } + /** + * Clean namespace from class + * + * @return string + */ public function getTitle() { return $this->stripPrefix($this->class); } + /** + * Removes custom namespace prefix + * + * @param string $class Class of object + * + * @return string + */ protected function stripPrefix($class) { $prefix = '\\phorkie\\Tool_';