Total Complexity | 2 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class MagicLink |
||
15 | { |
||
16 | /** @var \SimpleSAML\Configuration */ |
||
17 | protected Configuration $config; |
||
18 | |||
19 | /** @var \SimpleSAML\Configuration */ |
||
20 | protected Configuration $moduleConfig; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * @param \SimpleSAML\Configuration $config The configuration to use. |
||
25 | */ |
||
26 | public function __construct(Configuration $config) |
||
30 | } |
||
31 | |||
32 | |||
33 | /** |
||
34 | * Send magic link |
||
35 | * |
||
36 | * @param string $email |
||
37 | * @param string $token |
||
38 | * @param int $validUntil |
||
39 | * @return void |
||
40 | */ |
||
41 | public function sendMagicLink(string $email, string $token, int $validUntil): void |
||
57 |