| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 62 | 2 | public function jsonSerialize(): string |
|
| 63 | { |
||
| 64 | // This entity implements JsonSerializable (http://php.net/manual/en/class.jsonserializable.php) |
||
| 65 | // so this method is used to customize its JSON representation when json_encode() |
||
| 66 | // is called, for example in tags|json_encode (app/Resources/views/form/fields.html.twig) |
||
| 67 | |||
| 68 | 2 | return $this->name; |
|
| 69 | } |
||
| 70 | |||
| 76 |