Completed
Push — master ( e97c13...1021f1 )
by Timur
02:50
created

ListWorkersCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A listResponseItemsKey() 0 4 1
A requestMethod() 0 4 1
1
<?php
2
3
namespace Laravel\Forge\Sites\Commands\Workers;
4
5
class ListWorkersCommand extends WorkerCommand
6
{
7
    /**
8
     * Items key for List response.
9
     *
10
     * @return string
11
     */
12
    public function listResponseItemsKey()
13
    {
14
        return 'workers';
15
    }
16
17
    /**
18
     * HTTP request method.
19
     *
20
     * @return string
21
     */
22
    public function requestMethod()
23
    {
24
        return 'GET';
25
    }
26
}
27