/** * /** * Builds the method docblock for the specified method keeping the vital * annotations to be used in a method interceptor in the proxy class. * * @param string $className Name of the class the method is declared in * @param string $methodName Name of the method to create the parameters code for * @return string $methodDocumentation Passed by reference, will contain the DocComment for the given method * @author Karsten Dambekalns <*****@*****.**> */ public function buildMethodDocumentation($className, $methodName) { if ($className === NULL || $methodName === NULL) { return ''; } $methodDocumentation = ''; $methodTags = $this->reflectionService->getMethodTagsValues($className, $methodName); $ignoredTags = $this->reflectionService->getIgnoredTags(); foreach ($methodTags as $tag => $values) { if (!in_array($tag, $ignoredTags)) { foreach ($values as $value) { $methodDocumentation .= chr(10) . chr(9) . ' * @' . $tag . ' ' . $value; } } } return $methodDocumentation; }