Example #1
0
 /**
  * Parse the comment and extract the data.
  *
  * @static
  *
  * @param      $comment
  * @param bool $isPhpDoc
  *
  * @return array associative array with the extracted values
  */
 public static function parse($comment, $isPhpDoc = true)
 {
     $p = new self();
     if (empty($comment)) {
         return $p->_data;
     }
     if ($isPhpDoc) {
         $comment = self::removeCommentTags($comment);
     }
     $p->extractData($comment);
     return $p->_data;
 }