Transphpile\Transpile\NodeStateStack::pop PHP Method

pop() public method

public pop ( $name )
    public function pop($name)
    {
        if (count($this->vars) == 0) {
            return null;
        }
        if (!is_array($this->vars[count($this->vars) - 1][$name])) {
            throw new \InvalidArgumentException('argument must be an array');
        }
        return array_pop($this->vars[count($this->vars) - 1][$name]);
    }