PDepend\Source\Language\PHP\AbstractPHPParser::parseThrowsAnnotations PHP Method

parseThrowsAnnotations() private method

Returns the class names of all throws annotations with in the given comment block.
private parseThrowsAnnotations ( string $comment ) : array
$comment string The context doc comment block.
return array
    private function parseThrowsAnnotations($comment)
    {
        $throws = array();
        if (preg_match_all(self::REGEXP_THROWS_TYPE, $comment, $matches) > 0) {
            foreach ($matches[1] as $match) {
                $throws[] = $match;
            }
        }
        return $throws;
    }
AbstractPHPParser