Completed
Push — master ( c49cbc...039121 )
by Timur
02:32
created

WorkerCommand   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 resourcePath() 0 4 1
A resourceClass() 0 4 1
1
<?php
2
3
namespace Laravel\Forge\Workers\Commands;
4
5
use Laravel\Forge\Workers\Worker;
6
use Laravel\Forge\Commands\ResourceCommand;
7
8
abstract class WorkerCommand extends ResourceCommand
9
{
10
    /**
11
     * Resource path.
12
     *
13
     * @return string
14
     */
15
    public function resourcePath()
16
    {
17
        return 'workers';
18
    }
19
20
    /**
21
     * Resource class.
22
     *
23
     * @return string|null
24
     */
25
    public function resourceClass()
26
    {
27
        return Worker::class;
28
    }
29
}
30