PDepend\Source\AST\ASTCompilationUnit::getEndLine PHP Метод

getEndLine() публичный Метод

Returns the start line number for this source file. For an existing file this value must always be greater 0, while it can be 0 for a not existing dummy file.
С версии: 0.10.0
public getEndLine ( ) : integer
Результат integer
    public function getEndLine()
    {
        if ($this->endLine === 0) {
            $this->readSource();
        }
        return $this->endLine;
    }

Usage Example

 /**
  * testGetEndLineReturnsOneWhenSourceFileExists
  *
  * @return void
  */
 public function testGetEndLineReturnsOneWhenSourceFileExists()
 {
     $file = new ASTCompilationUnit(__FILE__);
     $this->assertEquals(362, $file->getEndLine());
 }