Completed
Push — master ( 1021f1...c49cbc )
by Timur
02:36
created

UninstallServiceCommand   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 28
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A requestMethod() 0 4 1
A command() 0 4 1
A runnable() 0 4 1
1
<?php
2
3
namespace Laravel\Forge\Services\Commands;
4
5
class UninstallServiceCommand extends ServiceCommand
6
{
7
    /**
8
     * HTTP request method.
9
     *
10
     * @return string
11
     */
12
    public function requestMethod()
13
    {
14
        return 'DELETE';
15
    }
16
17
    /**
18
     * @{inheritdoc}
19
     */
20
    public function command()
21
    {
22
        return 'remove';
23
    }
24
25
    /**
26
     * @{inheritdoc}
27
     */
28
    public function runnable()
29
    {
30
        return $this->getService()->uninstallable();
31
    }
32
}
33