| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class RegistrationMailer |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var \Swift_Mailer |
||
| 13 | */ |
||
| 14 | private $mailer; |
||
| 15 | /** |
||
| 16 | * @var EngineInterface |
||
| 17 | */ |
||
| 18 | private $templating; |
||
| 19 | private $adminEmail; |
||
| 20 | |||
| 21 | public function __construct($adminEmail, \Swift_Mailer $mailer, EngineInterface $templating) |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Send the hash link to the user |
||
| 30 | * @param User $user |
||
| 31 | * @return int The number of successful recipients. Can be 0 which indicates failure |
||
| 32 | */ |
||
| 33 | public function sendHash(User $user): int |
||
| 46 | } |
||
| 47 | } |