1 | <?php |
||
7 | class HexDriver implements DriverInterface |
||
8 | { |
||
9 | /** |
||
10 | * Indicates integer encoding. |
||
11 | * |
||
12 | * @var bool |
||
13 | */ |
||
14 | protected $integer = false; |
||
15 | |||
16 | /** |
||
17 | * Create a new hashid driver instance. |
||
18 | * |
||
19 | * @param array $config |
||
20 | */ |
||
21 | 2 | public function __construct(array $config = []) |
|
25 | |||
26 | /** |
||
27 | * Encode the data. |
||
28 | * |
||
29 | * @param mixed $data |
||
30 | * @return string |
||
31 | */ |
||
32 | 1 | public function encode($data) |
|
36 | |||
37 | /** |
||
38 | * Decode the data. |
||
39 | * |
||
40 | * @param string $data |
||
41 | * @return mixed |
||
42 | */ |
||
43 | 1 | public function decode($data) |
|
47 | } |
||
48 |