original_string: public function getInheritanceList(): array
      {
          $roleList = [$this];
          $role = $this;
          while ($parentRole = $role->getParent()) {
              $roleList[] = $parentRole;
              $role = $parentRole;
          }
  
          return $roleList;
      }
code: public function getInheritanceList(): array
      {
          $roleList = [$this];
          $role = $this;
          while ($parentRole = $role->getParent()) {
              $roleList[] = $parentRole;
              $role = $parentRole;
          }
  
          return $roleList;
      }
code_tokens: public function getInheritanceList ( ) : array { $ roleList = [ $ this ] ; $ role = $ this ; while ( $ parentRole = $ role -> getParent ( ) ) { $ roleList [ ] = $ parentRole ; $ role = $ parentRole ; } return $ roleList ; }
docstring: Return all inherited roles, including the start role, in this to-root traversal.
  @return array
docstring_tokens: Return all inherited roles including the start role in this to - root traversal .