1 | <?php |
||
12 | class OpenSslTokenGenerator implements TokenGeneratorInterface |
||
13 | { |
||
14 | const DEFAULT_LENGTH = 32; |
||
15 | |||
16 | /** |
||
17 | * @var int |
||
18 | */ |
||
19 | private $length; |
||
20 | |||
21 | /** |
||
22 | * @param int $length Token length |
||
23 | */ |
||
24 | 2 | public function __construct($length = self::DEFAULT_LENGTH) |
|
32 | |||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | 1 | public function generate() |
|
40 | } |
||
41 |