| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | trait Jsonc |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var bool |
||
| 15 | */ |
||
| 16 | private $jsonc = false; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return bool |
||
| 20 | */ |
||
| 21 | public function isJsonc() : bool |
||
| 22 | { |
||
| 23 | return $this->jsonc; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param bool $switch |
||
| 28 | * @return static |
||
| 29 | */ |
||
| 30 | public function setJsonc(bool $switch = true) : self |
||
| 34 | } |
||
| 35 | } |
||
| 36 |