| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 7 | class StoreRequest extends Request |
||
| 8 | { |
||
| 9 | public function getTitle() |
||
| 10 | { |
||
| 11 | return $this->input('title'); |
||
| 12 | } |
||
| 13 | |||
| 14 | public function getBody() |
||
| 15 | { |
||
| 16 | return $this->input('content'); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function getContestId() |
||
| 20 | { |
||
| 21 | return $this->input('contest_id', 0); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getProblemId() |
||
| 25 | { |
||
| 26 | return $this->input('problem_id', 0); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function rules() |
||
| 35 | ]; |
||
| 36 | } |
||
| 37 | |||
| 38 | } |
||
| 39 |