SAML2\SignedElementHelper::addValidator PHP Method

addValidator() public method

This function is used for custom validation extensions
public addValidator ( callback $function, mixed $data )
$function callback The function which should be called.
$data mixed The data that should be included as the first parameter to the function.
    public function addValidator($function, $data)
    {
        assert('is_callable($function)');
        $this->validators[] = array('Function' => $function, 'Data' => $data);
    }