static protected function isValid(Smd $smd, \ReflectionClass $reflectedclass)
    {
        $validator = $smd->getServiceValidator();
        if ($validator && is_callable($validator)) {
            if ( call_user_func_array($validator, [$reflectedclass]) === false ) {
                return false;
            }
        }
        return true;
    }
static protected function isValid(Smd $smd, \ReflectionClass $reflectedclass)
    {
        $validator = $smd->getServiceValidator();
        if ($validator && is_callable($validator)) {
            if ( call_user_func_array($validator, [$reflectedclass]) === false ) {
                return false;
            }
        }
        return true;
    }
static protected function isValid ( Smd $ smd , \ ReflectionClass $ reflectedclass ) { $ validator = $ smd -> getServiceValidator ( ) ; if ( $ validator && is_callable ( $ validator ) ) { if ( call_user_func_array ( $ validator , [ $ reflectedclass ] ) === false ) { return false ; } } return true ; }
Validate a class using the custom validation closure.

@param Smd $smd
@param \ReflectionClass $reflectedclass
@return bool
Validate a class using the custom validation closure .