| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class BroadcastResponse extends AbstractResponse |
||
| 8 | { |
||
| 9 | private const MESSAGE_CREATIVE_ID = 'message_creative_id'; |
||
| 10 | private const BROADCAST_ID = 'broadcast_id'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var null|string |
||
| 14 | */ |
||
| 15 | protected $messageCreativeId; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var null|string |
||
| 19 | */ |
||
| 20 | protected $broadcastId; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param array $response |
||
| 24 | */ |
||
| 25 | protected function parseResponse(array $response): void |
||
| 26 | { |
||
| 27 | $this->messageCreativeId = $response[self::MESSAGE_CREATIVE_ID] ?? null; |
||
| 28 | $this->broadcastId = $response[self::BROADCAST_ID] ?? null; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return null|string |
||
| 33 | */ |
||
| 34 | public function getMessageCreativeId(): ?string |
||
| 35 | { |
||
| 36 | return $this->messageCreativeId; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return null|string |
||
| 41 | */ |
||
| 42 | public function getBroadcastId(): ?string |
||
| 45 | } |
||
| 46 | } |
||
| 47 |