JBBCode/CodeDefinitionBuilder.php
public function setOptionValidator(\JBBCode\InputValidator $validator, $option=null)
    {
        if (empty($option)) {
            $option = $this->tagName;
        }
        $this->optionValidator[$option] = $validator;
        return $this;
    }
public function setOptionValidator(\JBBCode\InputValidator $validator, $option=null)
    {
        if (empty($option)) {
            $option = $this->tagName;
        }
        $this->optionValidator[$option] = $validator;
        return $this;
    }
public function setOptionValidator ( \ JBBCode \ InputValidator $ validator , $ option = null ) { if ( empty ( $ option ) ) { $ option = $ this -> tagName ; } $ this -> optionValidator [ $ option ] = $ validator ; return $ this ; }
Sets the InputValidator that option arguments should be validated with.

@param InputValidator $validator  the InputValidator instance to use
@return self
Sets the InputValidator that option arguments should be validated with .