Completed
Push — master ( 3cc9b0...d35865 )
by Timur
02:56
created

CertificateCommand   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 34
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 operationType() 0 4 1
1
<?php
2
3
namespace Laravel\Forge\Certificates\Commands;
4
5
use Laravel\Forge\Certificates\Certificate;
6
use Laravel\Forge\Commands\ResourceCommand;
7
8
abstract class CertificateCommand extends ResourceCommand
9
{
10
    /**
11
     * Resource path.
12
     *
13
     * @return string
14
     */
15
    public function resourcePath()
16
    {
17
        return 'certificates';
18
    }
19
20
    /**
21
     * Resource class name.
22
     *
23
     * @return string
24
     */
25
    public function resourceClass()
26
    {
27
        return Certificate::class;
28
    }
29
30
    /**
31
     * Certificate operation type.
32
     *
33
     * @param string $type
34
     *
35
     * @return static
36
     */
37
    public function operationType(string $type)
38
    {
39
        return $this->attachPayload('type', $type);
40
    }
41
}
42