original_string: public static function classInheritance($object){
  
          $class = new ReflectionClass($object);
          $classNames = [$class->getName()];
  
          while($class = $class->getParentClass()){
              $classNames[] = $class->getName();
          }
  
          return $classNames;
  
      }
code: public static function classInheritance($object){
  
          $class = new ReflectionClass($object);
          $classNames = [$class->getName()];
  
          while($class = $class->getParentClass()){
              $classNames[] = $class->getName();
          }
  
          return $classNames;
  
      }
code_tokens: public static function classInheritance ( $ object ) { $ class = new ReflectionClass ( $ object ) ; $ classNames = [ $ class -> getName ( ) ] ; while ( $ class = $ class -> getParentClass ( ) ) { $ classNames [ ] = $ class -> getName ( ) ; } return $ classNames ; }
docstring: Returns an array of the classname and all parent class names of
  the passed class or object
  
  @param object|string $object
  @return array
docstring_tokens: Returns an array of the classname and all parent class names of the passed class or object