original_string: protected function createInstance(\ReflectionClass $reflectedClass)
      {
          $constructor = $reflectedClass->getConstructor();
  
          if ($constructor && $constructor->getNumberOfRequiredParameters() > 0) {
              throw new \RuntimeException('Unable to hydrate an object requiring constructor param');
          }
  
          return $reflectedClass->newInstance();
      }
code: protected function createInstance(\ReflectionClass $reflectedClass)
      {
          $constructor = $reflectedClass->getConstructor();
  
          if ($constructor && $constructor->getNumberOfRequiredParameters() > 0) {
              throw new \RuntimeException('Unable to hydrate an object requiring constructor param');
          }
  
          return $reflectedClass->newInstance();
      }
code_tokens: protected function createInstance ( \ ReflectionClass $ reflectedClass ) { $ constructor = $ reflectedClass -> getConstructor ( ) ; if ( $ constructor && $ constructor -> getNumberOfRequiredParameters ( ) > 0 ) { throw new \ RuntimeException ( 'Unable to hydrate an object requiring constructor param' ) ; } return $ reflectedClass -> newInstance ( ) ; }
docstring: Create an instance from a Reflected class
  
  @param ReflectionClass $reflectedClass
  
  @throws RuntimeException If constructor requires parameter
  
  @return mixed
docstring_tokens: Create an instance from a Reflected class