Completed
Push — master ( 5f4753...9f13ac )
by Mahmoud
03:17
created

UserLogoutRequest::rules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace App\Containers\Authentication\UI\API\Requests;
4
5
use App\Port\Request\Abstracts\Request;
6
7
/**
8
 * Class UserLogoutRequest.
9
 *
10
 * @author Mahmoud Zalt <[email protected]>
11
 */
12
class UserLogoutRequest extends Request
13
{
14
15
    /**
16
     * The required Permissions to proceed with this request.
17
     *
18
     * @var  array
19
     */
20
    protected $access = [
21
        'permission' => null
22
    ];
23
24
    /**
25
     * Id's that needs decoding before applying the validation rules.
26
     *
27
     * @var  array
28
     */
29
    protected $decode = [
30
31
    ];
32
33
    /**
34
     * URL parameters (`/stores/999/items`) that needs to apply validation rules on.
35
     *
36
     * @var  array
37
     */
38
    protected $applyRulesOn = [
39
40
    ];
41
42
    /**
43
     * Get the validation rules that apply to the request.
44
     *
45
     * @return array
46
     */
47
    public function rules()
48
    {
49
        return [
50
51
        ];
52
    }
53
54
    /**
55
     * Determine if the user is authorized to make this request.
56
     *
57
     * @return bool
58
     */
59
    public function authorize()
60
    {
61
        return $this->hasAccess();
62
    }
63
}
64