| 1 | <?php |
||
| 8 | class Base62Connection extends Connection |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The Base62 instance. |
||
| 12 | * |
||
| 13 | * @var \Tuupola\Base62 |
||
| 14 | */ |
||
| 15 | protected $base62; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Indicates encoding to and from integer. |
||
| 19 | * |
||
| 20 | * @var bool |
||
| 21 | */ |
||
| 22 | protected $integer = false; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Create a new hashid connection instance. |
||
| 26 | * |
||
| 27 | * @param \Illuminate\Foundation\Application $app |
||
| 28 | * @param array $config |
||
| 29 | */ |
||
| 30 | public function __construct($app, array $config = []) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Encode the given data. |
||
| 43 | * |
||
| 44 | * @param mixed $data |
||
| 45 | * @return mixed |
||
| 46 | */ |
||
| 47 | public function encode($data) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Decode the given data. |
||
| 54 | * |
||
| 55 | * @param mixed $data |
||
| 56 | * @return mixed |
||
| 57 | */ |
||
| 58 | public function decode($data) |
||
| 62 | } |
||
| 63 |