Utility/CodeAnalysis/Method.php
public function getBody() {
    $filename = $this->getFileName();
    $start_line = $this->getStartLine() - 1; // it's actually - 1, otherwise you wont get the function() block
    $end_line = $this->getEndLine();
    $length = $end_line - $start_line;
    $file_source = file($filename);
    $body = implode("", array_slice($file_source, $start_line, $length));

    return $body;
  }
public function getBody() {
    $filename = $this->getFileName();
    $start_line = $this->getStartLine() - 1; // it's actually - 1, otherwise you wont get the function() block
    $end_line = $this->getEndLine();
    $length = $end_line - $start_line;
    $file_source = file($filename);
    $body = implode("", array_slice($file_source, $start_line, $length));

    return $body;
  }
public function getBody ( ) { $ filename = $ this -> getFileName ( ) ; $ start_line = $ this -> getStartLine ( ) - 1 ; // it's actually - 1, otherwise you wont get the function() block $ end_line = $ this -> getEndLine ( ) ; $ length = $ end_line - $ start_line ; $ file_source = file ( $ filename ) ; $ body = implode ( "" , array_slice ( $ file_source , $ start_line , $ length ) ) ; return $ body ; }
Gets the body code of the method.

@return string
The body of the method's code.
Gets the body code of the method .