| 1 | <?php |
||
| 8 | class OptimusDriver implements DriverInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The Optimus instance. |
||
| 12 | * |
||
| 13 | * @var \Jenssegers\Optimus\Optimus |
||
| 14 | */ |
||
| 15 | protected $optimus; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create a new hashid driver instance. |
||
| 19 | * |
||
| 20 | * @param array $config |
||
| 21 | * |
||
| 22 | * @throws \InvalidArgumentException |
||
| 23 | */ |
||
| 24 | 5 | public function __construct(array $config) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Encode the data. |
||
| 39 | * |
||
| 40 | * @param int $data |
||
| 41 | * @return int |
||
| 42 | */ |
||
| 43 | 1 | public function encode($data) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * Decode the data. |
||
| 50 | * |
||
| 51 | * @param int $data |
||
| 52 | * @return int |
||
| 53 | */ |
||
| 54 | 1 | public function decode($data) |
|
| 58 | } |
||
| 59 |