| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 2 | protected function bodyFields() |
|
| 30 | { |
||
| 31 | return [ |
||
| 32 | 2 | 'title' => ['required' => true, 'type' => 'string'], |
|
| 33 | 'text' => ['required' => true, 'type' => 'string'], |
||
| 34 | 'picUrl' => ['required' => false, 'type' => 'string'], |
||
| 35 | 'messageUrl' => ['required' => true, 'type' => 'string'], |
||
| 36 | ]; |
||
| 38 | } |