Payload   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getData() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
5
 *
6
 * (C) 2019 Pavel Petrov <[email protected]>.
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0
12
 */
13
14
declare(strict_types=1);
15
16
namespace Veslo\AppBundle\Workflow\Vacancy\Research\Conveyor;
17
18
/**
19
 * Data structure for workflow conveyor
20
 */
21
class Payload
22
{
23
    /**
24
     * Data to be passed through workflow
25
     *
26
     * @var object
27
     */
28
    private $data;
29
30
    /**
31
     * Payload constructor.
32
     *
33
     * @param object $data Data to be passed through workflow
34
     */
35
    public function __construct(object $data)
36
    {
37
        $this->data = $data;
38
    }
39
40
    /**
41
     * Returns data to be passed through workflow
42
     *
43
     * @return object
44
     */
45
    public function getData(): object
46
    {
47
        return $this->data;
48
    }
49
}
50