1 | <?php |
||
24 | final class SmsNotificationSettingsService implements NotificationSettingsServiceInterface |
||
25 | { |
||
26 | private const NAMESPACE = 'sms'; |
||
27 | private const KEY = 'enabled'; |
||
28 | private const ENABLED = '1'; |
||
29 | private const DISABLED = '0'; |
||
30 | |||
31 | /** |
||
32 | * @var UserKeyValueStorageInterface |
||
33 | */ |
||
34 | private $storage; |
||
35 | |||
36 | public function __construct(UserKeyValueStorageInterface $storage) |
||
40 | |||
41 | public function hasNotificationsEnabled(UserId $userId): bool |
||
45 | |||
46 | public function enableNotifications(UserId $userId): void |
||
50 | |||
51 | public function disableNotifications(UserId $userId): void |
||
55 | } |
||
56 |