Zephir\Passes\LocalContextPass::getLastCallLine PHP Method

getLastCallLine() public method

Returns the line where the latest call in the method was made
public getLastCallLine ( ) : integer
return integer
    public function getLastCallLine()
    {
        return $this->lastCallLine;
    }

Usage Example

コード例 #1
0
ファイル: SymbolTable.php プロジェクト: Jvbzephir/zephir
 /**
  * Returns the last line where any kind of call was performed within the method
  * This is not necessary related to the symbol table but this information is gathered
  * by the LocalContextPass
  *
  * @return int
  */
 public function getLastCallLine()
 {
     if ($this->localContext) {
         return $this->localContext->getLastCallLine();
     }
     return 0;
 }