| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait Prettifyable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * If true, the returned JSON will be prettified. Avoid using for production code. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $pretty = Enums\Boolean::FALSE; |
||
| 15 | |||
| 16 | public function isPretty(): string |
||
| 17 | { |
||
| 18 | return $this->pretty; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function setPretty(bool $pretty): void |
||
| 24 | } |
||
| 25 | } |
||
| 26 |