RedlinkOptions example

public static function toStringProvider(): iterable
    {
        yield ['redlink://api.redlink.pl?from=TEST&version=v2.1', self::createTransport()];
    }

    public static function supportedMessagesProvider(): iterable
    {
        yield [new SmsMessage('+48123123123', 'Summary')];
        yield [new SmsMessage('+48123123123', 'Summary', '')];
        yield [new SmsMessage('+48123123123', 'Summary', 'customSender')];
        yield [new SmsMessage('+48123123123', 'Summary', '', (new RedlinkOptions())->externalId('aaa-aaa-aaa'))];
    }

    public static function unsupportedMessagesProvider(): iterable
    {
        yield [new PushMessage('Hi!', 'Hello!')];
        yield [new ChatMessage('Hello!')];
        yield [new DummyMessage()];
    }
}
Home | Imprint | This part of the site doesn't use cookies.