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

AbstractJob::getData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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