| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Base62IntegerDriver extends Base62Driver |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Encode the data. |
||
| 9 | * |
||
| 10 | * @param int $data |
||
| 11 | * @return string |
||
| 12 | */ |
||
| 13 | 8 | public function encode($data) |
|
| 14 | { |
||
| 15 | 8 | return $this->base62->encodeInteger($data); |
|
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Decode the data. |
||
| 20 | * |
||
| 21 | * @param string $data |
||
| 22 | * @return int |
||
| 23 | */ |
||
| 24 | 8 | public function decode($data) |
|
| 27 | } |
||
| 28 | } |
||
| 29 |