1 | <?php |
||
21 | final class NewCommentPushGenerator |
||
22 | { |
||
23 | // Unfortunately we need to make these public, otherwise we can't test it without reflection |
||
24 | public const NOTIFICATION_NAME = 'NEW_COMMENT'; |
||
25 | public const TITLE_TRANSLATION_KEY = 'blog.push.new_comment.title'; |
||
26 | public const MESSAGE_TRANSLATION_KEY = 'blog.push.new_comment.message'; |
||
27 | public const DATA_KEY_POST_ID = 'post_id'; |
||
28 | |||
29 | /** |
||
30 | * @var TranslatorInterface |
||
31 | */ |
||
32 | private $translator; |
||
33 | |||
34 | public function __construct(TranslatorInterface $translator) |
||
38 | |||
39 | public function generate(NewCommentNotification $notification): PushNotification |
||
51 | } |
||
52 |