original_string: private function isMethodAccessible(\ReflectionClass $class, $methodName, $parameters)
      {
          if ($class->hasMethod($methodName)) {
              $method = $class->getMethod($methodName);
  
              if ($method->isPublic()
                  && $method->getNumberOfRequiredParameters() <= $parameters
                  && $method->getNumberOfParameters() >= $parameters) {
                  return true;
              }
          }
  
          return false;
      }
code: private function isMethodAccessible(\ReflectionClass $class, $methodName, $parameters)
      {
          if ($class->hasMethod($methodName)) {
              $method = $class->getMethod($methodName);
  
              if ($method->isPublic()
                  && $method->getNumberOfRequiredParameters() <= $parameters
                  && $method->getNumberOfParameters() >= $parameters) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: private function isMethodAccessible ( \ ReflectionClass $ class , $ methodName , $ parameters ) { if ( $ class -> hasMethod ( $ methodName ) ) { $ method = $ class -> getMethod ( $ methodName ) ; if ( $ method -> isPublic ( ) && $ method -> getNumberOfRequiredParameters ( ) <= $ parameters && $ method -> getNumberOfParameters ( ) >= $ parameters ) { return true ; } } return false ; }
docstring: Returns whether a method is public and has the number of required parameters.
  
  Part of the Symfony package. Symfony license applies.
  
  @param \ReflectionClass $class      The class of the method
  @param string           $methodName The method name
  @param int              $parameters The number of parameters
  
  @return bool Whether the method is public and has $parameters
  required parameters
docstring_tokens: Returns whether a method is public and has the number of required parameters .