original_string: public function getAncestors($class)
      {
          $ancestors = [];
          while (true) {
              $parent = $this->getParent($class);
              if ($parent) {
                  $ancestors[] = $parent;
                  $class = $parent;
              } else {
                  break;
              }
          }
          return $ancestors;
      }
code: public function getAncestors($class)
      {
          $ancestors = [];
          while (true) {
              $parent = $this->getParent($class);
              if ($parent) {
                  $ancestors[] = $parent;
                  $class = $parent;
              } else {
                  break;
              }
          }
          return $ancestors;
      }
code_tokens: public function getAncestors ( $ class ) { $ ancestors = [ ] ; while ( true ) { $ parent = $ this -> getParent ( $ class ) ; if ( $ parent ) { $ ancestors [ ] = $ parent ; $ class = $ parent ; } else { break ; } } return $ ancestors ; }
docstring: gets all parent classes
  
  @param string $class
  @return array
docstring_tokens: gets all parent classes