private function parseReturnAnnotation($comment) { if (preg_match(self::REGEXP_RETURN_TYPE, $comment, $match) > 0) { foreach (explode('|', end($match)) as $type) { if (Type::isScalarType($type) === false) { return $type; } } } return null; }