original_string: public function extension()
      {
          $atoms = $this->nameAtoms();
          $numParts = count($atoms);
  
          if ($numParts > 1) {
              return $atoms[$numParts - 1];
          }
  
          return null;
      }
code: public function extension()
      {
          $atoms = $this->nameAtoms();
          $numParts = count($atoms);
  
          if ($numParts > 1) {
              return $atoms[$numParts - 1];
          }
  
          return null;
      }
code_tokens: public function extension ( ) { $ atoms = $ this -> nameAtoms ( ) ; $ numParts = count ( $ atoms ) ; if ( $ numParts > 1 ) { return $ atoms [ $ numParts - 1 ] ; } return null ; }
docstring: Get this path's last extension.
  
  @return string|null The last extension of this path's last atom. If the last atom has no extensions, or this path has no atoms, this method will return null.
docstring_tokens: Get this path s last extension .