title: fetch php method comments
body: <p>I want to fetch a method's comments,take below method for example:</p>
  
  <pre><code>/**
  * Returns the regex to extract all inputs from a file.
  * @param string The class name to search for.
  * @return string The regex.
  */
  public function method($param)
  {
    //...
  }
  </code></pre>
  
  <p>the result should be </p>
  
  <pre><code>Returns the regex to extract all inputs from a file.
  @param string The class name to search for.
  @return string The regex.
  </code></pre>
  
  <p>the way I find is use a function like file_get_content to get file content -> filter the method I want -> fetch the comment use regexp</p>
  
  <p>it seems a bit complicated , is there any convenient way to archive this?</p>