src/Common/Service/Mime.php
public function addExtension(string $sExtension, array $aMimes): self
    {
        $this->updateMap(static::$aMapExtensionToMimes, $sExtension, $aMimes);
        foreach ($aMimes as $sMime) {
            $this->updateMap(static::$aMapMimeToExtensions, $sMime, [$sExtension]);
        }
        return $this;
    }
public function addExtension(string $sExtension, array $aMimes): self
    {
        $this->updateMap(static::$aMapExtensionToMimes, $sExtension, $aMimes);
        foreach ($aMimes as $sMime) {
            $this->updateMap(static::$aMapMimeToExtensions, $sMime, [$sExtension]);
        }
        return $this;
    }
public function addExtension ( string $ sExtension , array $ aMimes ) : self { $ this -> updateMap ( static :: $ aMapExtensionToMimes , $ sExtension , $ aMimes ) ; foreach ( $ aMimes as $ sMime ) { $ this -> updateMap ( static :: $ aMapMimeToExtensions , $ sMime , [ $ sExtension ] ) ; } return $ this ; }
Adds a new extension to the map and its associated mime types

@param string $sExtension the extension to add
@param array  $aMimes     An array of acceptable mime types

@return Mime
Adds a new extension to the map and its associated mime types