protected function addTextRule($type, $keyword, Closure $fn)
    {
        $this->rules['text'][] = array(
            'type' => $type,
            'keyword' => $keyword,
            'fn' => $fn,
        );
        return $this;
    }
protected function addTextRule($type, $keyword, Closure $fn)
    {
        $this->rules['text'][] = array(
            'type' => $type,
            'keyword' => $keyword,
            'fn' => $fn,
        );
        return $this;
    }
protected function addTextRule ( $ type , $ keyword , Closure $ fn ) { $ this -> rules [ 'text' ] [ ] = array ( 'type' => $ type , 'keyword' => $ keyword , 'fn' => $ fn , ) ; return $ this ; }
Adds a rule to handle user text input

@param string $type
@param string $keyword
@param Closure $fn
@return $this
Adds a rule to handle user text input