original_string: public function getTree(): array
      {
          $tree = [];
          $size = count($this->segments);
  
          for ($index = 0; $index < $size; $index = $index + 1) {
              $temp = array_slice($this->segments, 0, $index + 1);
              $path = implode(DIRECTORY_SEPARATOR, $temp);
  
              $tree[] = Path::normalize($path);
          }
  
          return $tree;
      }
code: public function getTree(): array
      {
          $tree = [];
          $size = count($this->segments);
  
          for ($index = 0; $index < $size; $index = $index + 1) {
              $temp = array_slice($this->segments, 0, $index + 1);
              $path = implode(DIRECTORY_SEPARATOR, $temp);
  
              $tree[] = Path::normalize($path);
          }
  
          return $tree;
      }
code_tokens: public function getTree ( ) : array { $ tree = [ ] ; $ size = count ( $ this -> segments ) ; for ( $ index = 0 ; $ index < $ size ; $ index = $ index + 1 ) { $ temp = array_slice ( $ this -> segments , 0 , $ index + 1 ) ; $ path = implode ( DIRECTORY_SEPARATOR , $ temp ) ; $ tree [ ] = Path :: normalize ( $ path ) ; } return $ tree ; }
docstring: Devuelve el arbol de directorios, desde la raiz hasta la ruta actual,
  como un array de strings
  
  @return string[]
docstring_tokens: Devuelve el arbol de directorios desde la raiz hasta la ruta actual como un array de strings