Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class TokenFactory implements TokenFactoryInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var DateInterval |
||
19 | */ |
||
20 | private $ttl; |
||
21 | |||
22 | /** |
||
23 | * @var int |
||
24 | */ |
||
25 | private $length; |
||
26 | |||
27 | /** |
||
28 | * @param integer $ttl |
||
29 | * @param integer $length |
||
30 | */ |
||
31 | public function __construct($ttl, $length = 32) |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return TokenInterface |
||
39 | */ |
||
40 | public function createToken() |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | private function generateToken() |
||
53 |