PluginProbe
Pushly / trunk
Pushly vtrunk
2.4.0 2.3.0 trunk 1.0 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 2.0.0 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1
pushly / src / php / Models / NotificationDeliverySpec.php

NotificationDeliverySpec.php in Pushly trunk, at src/php/Models/NotificationDeliverySpec.php

24 lines 447 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Pushly\Models;
4
5 class NotificationDeliverySpec implements \JsonSerializable {
6 public ?string $type = null;
7 public ?string $window = null;
8 public ?string $send_date_utc = null;
9
10 #[\ReturnTypeWillChange]
11 public function jsonSerialize(): array {
12 $r = [
13 'type' => $this->type,
14 'window' => $this->window,
15 ];
16
17 if ( $this->type === 'SCHEDULED' ) {
18 $r['send_date_utc'] = $this->send_date_utc;
19 }
20
21 return $r;
22 }
23 }
24