original_string: private function getOnValidate(\ReflectionMethod $method)
      {
          /** @var $valid Valid */
          $valid = $this->reader->getMethodAnnotation($method, Valid::class);
          $class = $method->getDeclaringClass();
          $onMethods = $this->findOnMethods($class, $valid);
          if ($onMethods[0] && $onMethods[0] instanceof \ReflectionMethod) {
              return $onMethods;
          }
          throw new ValidateMethodNotFound($method->getShortName());
      }
code: private function getOnValidate(\ReflectionMethod $method)
      {
          /** @var $valid Valid */
          $valid = $this->reader->getMethodAnnotation($method, Valid::class);
          $class = $method->getDeclaringClass();
          $onMethods = $this->findOnMethods($class, $valid);
          if ($onMethods[0] && $onMethods[0] instanceof \ReflectionMethod) {
              return $onMethods;
          }
          throw new ValidateMethodNotFound($method->getShortName());
      }
code_tokens: private function getOnValidate ( \ ReflectionMethod $ method ) { /** @var $valid Valid */ $ valid = $ this -> reader -> getMethodAnnotation ( $ method , Valid :: class ) ; $ class = $ method -> getDeclaringClass ( ) ; $ onMethods = $ this -> findOnMethods ( $ class , $ valid ) ; if ( $ onMethods [ 0 ] && $ onMethods [ 0 ] instanceof \ ReflectionMethod ) { return $ onMethods ; } throw new ValidateMethodNotFound ( $ method -> getShortName ( ) ) ; }
docstring: Return Validate and OnFailure method
  
  @param \ReflectionMethod $method
  
  @return \ReflectionMethod[] [$onValidateMethod, $onFailureMethod]
docstring_tokens: Return Validate and OnFailure method