AbandonedCartPayload.php
2 years ago
CustomerPayload.php
1 year ago
OrderPayload.php
1 year ago
OrderStatusChangePayload.php
3 years ago
index.php
3 years ago
OrderStatusChangePayload.php
34 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | namespace MailPoet\Automation\Integrations\WooCommerce\Payloads; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use MailPoet\Automation\Engine\Integration\Payload; |
| 9 | |
| 10 | class OrderStatusChangePayload implements Payload { |
| 11 | |
| 12 | /** @var string */ |
| 13 | private $from; |
| 14 | |
| 15 | /** @var string */ |
| 16 | private $to; |
| 17 | |
| 18 | public function __construct( |
| 19 | string $from, |
| 20 | string $to |
| 21 | ) { |
| 22 | $this->from = $from; |
| 23 | $this->to = $to; |
| 24 | } |
| 25 | |
| 26 | public function getFrom(): string { |
| 27 | return $this->from; |
| 28 | } |
| 29 | |
| 30 | public function getTo(): string { |
| 31 | return $this->to; |
| 32 | } |
| 33 | } |
| 34 |