public function getAssetType(string $assetType) : AssetTypeInterface
    {
        if (!isset($this->assetTypes[$assetType])) {
            if (isset($this->assetTypesArray[$assetType])) {
                $this->assetTypes[$assetType] = ImmutableAssetType::fromArray($assetType, $this->assetTypesArray[$assetType]);
            } else {
                $this->assetTypes[$assetType] = ImmutableAssetType::fromArray($assetType, []);
            }
        }
        return $this->assetTypes[$assetType];
    }
public function getAssetType(string $assetType) : AssetTypeInterface
    {
        if (!isset($this->assetTypes[$assetType])) {
            if (isset($this->assetTypesArray[$assetType])) {
                $this->assetTypes[$assetType] = ImmutableAssetType::fromArray($assetType, $this->assetTypesArray[$assetType]);
            } else {
                $this->assetTypes[$assetType] = ImmutableAssetType::fromArray($assetType, []);
            }
        }
        return $this->assetTypes[$assetType];
    }
public function getAssetType ( string $ assetType ) : AssetTypeInterface { if ( ! isset ( $ this -> assetTypes [ $ assetType ] ) ) { if ( isset ( $ this -> assetTypesArray [ $ assetType ] ) ) { $ this -> assetTypes [ $ assetType ] = ImmutableAssetType :: fromArray ( $ assetType , $ this -> assetTypesArray [ $ assetType ] ) ; } else { $ this -> assetTypes [ $ assetType ] = ImmutableAssetType :: fromArray ( $ assetType , [ ] ) ; } } return $ this -> assetTypes [ $ assetType ] ; }
Returns an asset type object for the requested type.

If no assets are found, an AssetType object containing no assets is returned.

@param string $assetType
@return AssetTypeInterface
Returns an asset type object for the requested type .