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

@param string $sMime       The mime type to add
@param array  $aExtensions An array of acceptable extensions

@return Mime
Adds a new mime type to the map and its associated extensions