IndexRequest::rules()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace App\Http\Requests\Solution;
4
5
use App\Http\Requests\Request;
6
7
class IndexRequest extends Request
8
{
9
    public function getUserName()
10
    {
11
        return $this->input('username');
12
    }
13
14
    public function getProblemId()
15
    {
16
        return $this->input('problem_id');
17
    }
18
19
    public function getLanguage()
20
    {
21
        return $this->input('language', -1);
22
    }
23
24
    public function getStatus()
25
    {
26
        return $this->input('status', -1);
27
    }
28
29
    public function rules()
30
    {
31
        return [];
32
    }
33
34
    public function authorize()
35
    {
36
        return true;
37
    }
38
}
39