public function addValidator(callable $validator, string $validator_name): self
    {
        $this->validators[$validator_name] = $validator;

        return $this;
    }
public function addValidator(callable $validator, string $validator_name): self
    {
        $this->validators[$validator_name] = $validator;

        return $this;
    }
public function addValidator ( callable $ validator , string $ validator_name ) : self { $ this -> validators [ $ validator_name ] = $ validator ; return $ this ; }
Adds a record validator.
Adds a record validator .