original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Validate a class using the custom validation closure.
  
  @param Smd $smd
  @param \ReflectionClass $reflectedclass
  @return bool
docstring_tokens: Validate a class using the custom validation closure .