Zephir\Passes\LocalContextPass::getLastUnsetLine PHP Method

getLastUnsetLine() public method

Returns the line where the latest unset operation was made
public getLastUnsetLine ( ) : integer
return integer
    public function getLastUnsetLine()
    {
        return $this->lastUnsetLine;
    }

Usage Example

Example #1
0
 /**
  * Returns the last line where an 'unset' operation was made within the current method
  * This is not necessary related to the symbol table but this information is gathered
  * by the LocalContextPass
  *
  * @return int
  */
 public function getLastUnsetLine()
 {
     if ($this->localContext) {
         return $this->localContext->getLastUnsetLine();
     }
     return 0;
 }