Returns the extension of the file.
\SplFileInfo::getExtension() is not available before PHP 5.3.6
@api
string The extension
public function getExtension() { return pathinfo($this ->getBasename(), PATHINFO_EXTENSION); }