Total Complexity | 4 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | abstract class AbstractJob implements JobInterface |
||
18 | { |
||
19 | /** |
||
20 | * Data. |
||
21 | * |
||
22 | * @var mixed |
||
23 | **/ |
||
24 | protected $data; |
||
25 | |||
26 | /** |
||
27 | * Job ID. |
||
28 | * |
||
29 | * @var ObjectId |
||
30 | */ |
||
31 | protected $id; |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 16 | public function setData($data): JobInterface |
|
37 | { |
||
38 | 16 | $this->data = $data; |
|
39 | |||
40 | 16 | return $this; |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 1 | public function getData() |
|
47 | { |
||
48 | 1 | return $this->data; |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | 16 | public function setId(ObjectId $id): JobInterface |
|
59 | } |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | 1 | public function getId(): ObjectId |
|
67 | } |
||
68 | } |
||
69 |