public function getExtension() { $lastDot = strrpos($this->getName(), '.'); return false === $lastDot ? null : strtolower(substr($this->getName(), $lastDot + 1)); }