src/PAGI/Node/Node.php
protected function evaluateInput($digit)
    {
        if ($this->inputIsCancel($digit)) {
            return self::INPUT_CANCEL;
        }
        if ($this->inputIsEnd($digit)) {
            return self::INPUT_END;
        }
        return self::INPUT_NORMAL;
    }
protected function evaluateInput($digit)
    {
        if ($this->inputIsCancel($digit)) {
            return self::INPUT_CANCEL;
        }
        if ($this->inputIsEnd($digit)) {
            return self::INPUT_END;
        }
        return self::INPUT_NORMAL;
    }
protected function evaluateInput ( $ digit ) { if ( $ this -> inputIsCancel ( $ digit ) ) { return self :: INPUT_CANCEL ; } if ( $ this -> inputIsEnd ( $ digit ) ) { return self :: INPUT_END ; } return self :: INPUT_NORMAL ; }
Returns the kind of digit entered by the user, CANCEL, END, NORMAL.

@param string $digit A single character, one of the DTMF_* constants.

@return integer
Returns the kind of digit entered by the user CANCEL END NORMAL .