src/JustSnaps/FileDriver.php
public static function addSerializerToDriver(Serializer $serializer, FileDriverProvider $provider): FileDriverProvider {
		if ($provider instanceof FileDriverWithSerializer) {
			$provider->addSerializer($serializer);
			return $provider;
		}
		return new FileDriverWithSerializer($serializer, $provider);
	}
public static function addSerializerToDriver(Serializer $serializer, FileDriverProvider $provider): FileDriverProvider {
		if ($provider instanceof FileDriverWithSerializer) {
			$provider->addSerializer($serializer);
			return $provider;
		}
		return new FileDriverWithSerializer($serializer, $provider);
	}
public static function addSerializerToDriver ( Serializer $ serializer , FileDriverProvider $ provider ) : FileDriverProvider { if ( $ provider instanceof FileDriverWithSerializer ) { $ provider -> addSerializer ( $ serializer ) ; return $ provider ; } return new FileDriverWithSerializer ( $ serializer , $ provider ) ; }
Add a serializer to a FileDriverProvider

@param Serializer $serializer The Serializer to add
@param FileDriverProvider $driver The driver to which to add the Serializer
@return FileDriverProvider The modified FileDriverProvider
Add a serializer to a FileDriverProvider