Added support for deprecated phpdoc tag

This commit is contained in:
Mario Franco 2013-04-16 16:19:19 +01:00
parent 629ee251da
commit bb9fd6d756

View File

@ -320,6 +320,9 @@ class ApiDocExtractor
if (preg_match('{^@param (.+)}', trim($line), $matches)) {
$paramDocs[] = $matches[1];
}
if (preg_match('{^@deprecated\b(.*)}', trim($line), $matches)) {
$annotation->setDeprecated(true);
}
}
$regexp = '{(\w*) *\$%s *(.*)}i';