src/bbn/parsers/doc.php
public function parse(){
    preg_match_all($this->pattern['start'], $this->source, $matches, PREG_OFFSET_CAPTURE);
    if ( isset($matches[0]) ){
      foreach ( $matches[0] as $match ){
        preg_match($this->pattern['end'], $this->source, $mat, PREG_OFFSET_CAPTURE, $match[1]);
        $start = $match[1];
        $length = isset($mat[0]) ? ($mat[0][1] - $start) + 3 : 0;
        $this->parsed[] = $this->parse_docblock(substr($this->source, $start, $length));
      }
    }
    return $this->parsed;
  }
public function parse(){
    preg_match_all($this->pattern['start'], $this->source, $matches, PREG_OFFSET_CAPTURE);
    if ( isset($matches[0]) ){
      foreach ( $matches[0] as $match ){
        preg_match($this->pattern['end'], $this->source, $mat, PREG_OFFSET_CAPTURE, $match[1]);
        $start = $match[1];
        $length = isset($mat[0]) ? ($mat[0][1] - $start) + 3 : 0;
        $this->parsed[] = $this->parse_docblock(substr($this->source, $start, $length));
      }
    }
    return $this->parsed;
  }
public function parse ( ) { preg_match_all ( $ this -> pattern [ 'start' ] , $ this -> source , $ matches , PREG_OFFSET_CAPTURE ) ; if ( isset ( $ matches [ 0 ] ) ) { foreach ( $ matches [ 0 ] as $ match ) { preg_match ( $ this -> pattern [ 'end' ] , $ this -> source , $ mat , PREG_OFFSET_CAPTURE , $ match [ 1 ] ) ; $ start = $ match [ 1 ] ; $ length = isset ( $ mat [ 0 ] ) ? ( $ mat [ 0 ] [ 1 ] - $ start ) + 3 : 0 ; $ this -> parsed [ ] = $ this -> parse_docblock ( substr ( $ this -> source , $ start , $ length ) ) ; } } return $ this -> parsed ; }
Parses the current source

@return array
Parses the current source