PhpPeg\Pending::apply_if_present PHP Method

apply_if_present() public method

public apply_if_present ( $on )
    function apply_if_present($on)
    {
        if ($this->what !== NULL) {
            $what = $this->what;
            $on->{$what} = $this->val;
            $this->what = NULL;
        }
    }