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

CertificateCommand::resourceClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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