public static function create(string $format = SerializerBuilder::DEFAULT_FORMAT) : SerializerInterface
    {
        return SerializerBuilder::instance()->setFormat($format)->build();
    }
public static function create(string $format = SerializerBuilder::DEFAULT_FORMAT) : SerializerInterface
    {
        return SerializerBuilder::instance()->setFormat($format)->build();
    }
public static function create ( string $ format = SerializerBuilder :: DEFAULT_FORMAT ) : SerializerInterface { return SerializerBuilder :: instance ( ) -> setFormat ( $ format ) -> build ( ) ; }
Creates Serializer instance by format

@param string $format
@return SerializerInterface
@throws UnknownFormatException
Creates Serializer instance by format