Completed
Push — master ( 640af0...429745 )
by Timur
04:28
created

GetAuthenticatedUserCommand   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 32
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A resourcePath() 0 4 1
A resourceClass() 0 4 1
A requestMethod() 0 4 1
1
<?php
2
3
namespace Laravel\Forge\Users\Commands;
4
5
use Laravel\Forge\Commands\ResourceCommand;
6
use Laravel\Forge\Users\User;
7
8
class GetAuthenticatedUserCommand extends ResourceCommand
9
{
10
    /**
11
     * Resource path.
12
     *
13
     * @return string
14
     */
15
    public function resourcePath()
16
    {
17
        return 'user';
18
    }
19
20
    /**
21
     * Resource class name.
22
     *
23
     * @return string
24
     */
25
    public function resourceClass()
26
    {
27
        return User::class;
28
    }
29
30
    /**
31
     * HTTP request method.
32
     *
33
     * @return string
34
     */
35
    public function requestMethod()
36
    {
37
        return 'GET';
38
    }
39
}
40