Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class TokenFactory implements TokenFactoryInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var DateInterval |
||
21 | */ |
||
22 | private $ttl; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | private $length; |
||
28 | |||
29 | public function __construct(int $ttl, int $length = 32) |
||
33 | } |
||
34 | |||
35 | public function createToken(): TokenInterface |
||
38 | } |
||
39 | |||
40 | private function generateToken(): string |
||
45 |