| 1 | <?php |
||
| 21 | final class NewCommentSmsGenerator |
||
| 22 | { |
||
| 23 | // Unfortunately we need to make this public, otherwise we can't test it without reflection |
||
| 24 | public const MESSAGE_TRANSLATION_KEY = 'blog.sms.new_comment.message'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var TranslatorInterface |
||
| 28 | */ |
||
| 29 | private $translator; |
||
| 30 | |||
| 31 | public function __construct(TranslatorInterface $translator) |
||
| 35 | |||
| 36 | public function generate(NewCommentNotification $notification): Sms |
||
| 43 | } |
||
| 44 |