Completed
Push — master ( 9c6457...f5ebc8 )
by Raffael
02:25
created

AbstractJob   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 31
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getData() 0 3 1
A setData() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * TaskScheduler
7
 *
8
 * @author      Raffael Sahli <[email protected]>
9
 * @copyright   Copryright (c) 2017 gyselroth GmbH (https://gyselroth.com)
10
 * @license     MIT https://opensource.org/licenses/MIT
11
 */
12
13
namespace TaskScheduler\Async;
14
15
abstract class AbstractJob implements JobInterface
0 ignored issues
show
Bug introduced by
The type TaskScheduler\Async\JobInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
16
{
17
    /**
18
     * Data.
19
     *
20
     * @var mixed
21
     **/
22
    protected $data;
23
24
    /**
25
     * Get data.
26
     *
27
     * @param mixed $data
28
     *
29
     * @return JobInterface
30
     */
31
    public function setData($data): JobInterface
32
    {
33
        $this->data = $data;
34
35
        return $this;
36
    }
37
38
    /**
39
     * Get data.
40
     *
41
     * @return mixed
42
     */
43
    public function getData()
44
    {
45
        return $this->data;
46
    }
47
}
48