| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | abstract class BaseClient |
||
| 13 | { |
||
| 14 | protected $service; |
||
| 15 | protected $messageFormatter; |
||
| 16 | protected $notifableEntity; |
||
| 17 | protected $notificationClass; |
||
| 18 | |||
| 19 | protected function getMessageFormatter(): MessageFormatterInterface |
||
| 26 | } |
||
| 27 | |||
| 28 | protected function getNotifableEntity(): NotifableEntityInterface |
||
| 29 | { |
||
| 30 | if (!$this->notifableEntity) { |
||
| 31 | $this->notifableEntity = app(NotificationEntityFactory::class)->create(); |
||
| 32 | } |
||
| 33 | |||
| 34 | return $this->notifableEntity; |
||
| 35 | } |
||
| 36 | |||
| 37 | protected function getNotificationClass(): Notification |
||
| 44 | } |
||
| 45 | } |
||
| 46 |