public function getExtension() { if ($this->extension == '') { /* @noinspection PhpDeprecationInspection */ return $this->getLegacyExtension(); } return $this->extension; }