public function callback($callable, $description = null): ValidatorChain
    {
        $rule = Validator::rule('callback', [$callable]);
        if (null !== $description) {
            $rule->setDescription($description);
        }
        $this->addRule($rule);
        return $this;
    }
public function callback($callable, $description = null): ValidatorChain
    {
        $rule = Validator::rule('callback', [$callable]);
        if (null !== $description) {
            $rule->setDescription($description);
        }
        $this->addRule($rule);
        return $this;
    }
public function callback ( $ callable , $ description = null ) : ValidatorChain { $ rule = Validator :: rule ( 'callback' , [ $ callable ] ) ; if ( null !== $ description ) { $ rule -> setDescription ( $ description ) ; } $ this -> addRule ( $ rule ) ; return $ this ; }
Add Callback Rule to ValidatorChain

@param mixed       $callable
@param string|null $description

@return ValidatorChain
@throws \Bluz\Validator\Exception\ComponentException
Add Callback Rule to ValidatorChain