public function getDefinition() { $definition = $this->getUri(); if ($method = $this->getMethod()) { $definition = $method . ' ' . $definition; } return '# ' . $this->getIdentifier() . ($definition == '/' ? '' : ' [' . $definition . ']'); }