Passed
Push — master ( ceb2be...b3c65f )
by Sam
03:44
created

JobCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 7
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Pheanstalk\Command;
4
5
use Pheanstalk\Contract\JobIdInterface;
6
7
/**
8
 * A command that is executed against a single job
9
 */
10
abstract class JobCommand extends AbstractCommand
11
{
12
    protected $jobId;
13
14 29
    public function __construct(JobIdInterface $subject)
15
    {
16 29
        $this->jobId = $subject->getId();
17
    }
18
}
19