Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait TurnsIntoString |
||
10 | { |
||
11 | /** |
||
12 | * Retrieve the DTO as a JSON string |
||
13 | * |
||
14 | * @param int $options |
||
15 | * @return string|false |
||
16 | */ |
||
17 | 2 | public function toJson($options = 0) |
|
20 | } |
||
21 | |||
22 | /** |
||
23 | * Retrieve the JSON serialized DTO |
||
24 | * |
||
25 | * @return array |
||
26 | */ |
||
27 | 1 | public function jsonSerialize(): array |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * Retrieve the string representation of the DTO |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | 1 | public function __toString(): string |
|
42 |