PAGI\Node\Node::resetInput PHP Method

resetInput() protected method

Internally used to clear the input per input attempt. Also resets state to TIMEOUT.
protected resetInput ( ) : Node
return Node
    protected function resetInput()
    {
        if ($this->minInput === 0) {
            $this->state = self::STATE_COMPLETE;
        } else {
            $this->state = self::STATE_TIMEOUT;
        }
        $this->input = self::DTMF_NONE;
        return $this;
    }