| Total Complexity | 6 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Encode |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | private $data; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param array $data |
||
| 19 | * |
||
| 20 | * @return static |
||
| 21 | */ |
||
| 22 | public static function create(array $data) |
||
| 23 | { |
||
| 24 | return new static($data); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Encode constructor. |
||
| 29 | * |
||
| 30 | * @param array $data |
||
| 31 | */ |
||
| 32 | private function __construct(array $data) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return bool|string |
||
| 39 | */ |
||
| 40 | public function toString() |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return $this |
||
| 57 | */ |
||
| 58 | public function ksort() |
||
| 65 |