Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class StateChangeEvent extends JobEvent |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $newState; |
||
15 | |||
16 | /** |
||
17 | * @param JobInterface $job |
||
18 | * @param string $newState |
||
19 | */ |
||
20 | public function __construct(JobInterface $job, string $newState) |
||
21 | { |
||
22 | parent::__construct($job); |
||
23 | |||
24 | $this->newState = $newState; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getNewState(): string |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param string $state |
||
37 | */ |
||
38 | public function setNewState(string $state): void |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getOldState(): string |
||
51 |