Flow\TokenStream::consume PHP Method

consume() public method

public consume ( $primary, $secondary = null )
    public function consume($primary, $secondary = null)
    {
        if ($this->test($primary, $secondary)) {
            $this->expect($primary, $secondary);
            return true;
        } else {
            return false;
        }
    }