private static function createPackage(
        string $payload,
        DeliveryOptions $options,
        DeliveryDestination $destination
    ): OutboundPackage {
        return OutboundPackage::create(
            $payload,
            $options->headers(),
            $destination,
            $options->traceId(),
            $options->isPersistent(),
            // @todo: fixme
            false,
            false,
            $options->expirationAfter()
        );
    }
private static function createPackage(
        string $payload,
        DeliveryOptions $options,
        DeliveryDestination $destination
    ): OutboundPackage {
        return OutboundPackage::create(
            $payload,
            $options->headers(),
            $destination,
            $options->traceId(),
            $options->isPersistent(),
            // @todo: fixme
            false,
            false,
            $options->expirationAfter()
        );
    }
private static function createPackage ( string $ payload , DeliveryOptions $ options , DeliveryDestination $ destination ) : OutboundPackage { return OutboundPackage :: create ( $ payload , $ options -> headers ( ) , $ destination , $ options -> traceId ( ) , $ options -> isPersistent ( ) , // @todo: fixme false , false , $ options -> expirationAfter ( ) ) ; }
Create outbound package with specified parameters.

@param string              $payload
@param DeliveryOptions     $options
@param DeliveryDestination $destination

@return OutboundPackage
Create outbound package with specified parameters .