ProcessEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 20
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getProcess() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Paraunit\Lifecycle;
6
7
use Paraunit\Process\AbstractParaunitProcess;
8
use Symfony\Component\EventDispatcher\Event;
9
10
/***
11
 * Class ProcessEvent
12
 * @package Paraunit\Lifecycle
13
 */
14
class ProcessEvent extends Event
15
{
16
    const PROCESS_STARTED = 'process_event.process_started';
17
    const PROCESS_TERMINATED = 'process_event.process_terminated';
18
    const PROCESS_TO_BE_RETRIED = 'process_event.process_to_be_retried';
19
    const PROCESS_PARSING_COMPLETED = 'process_event.process_parsing_completed';
20
21
    /** @var AbstractParaunitProcess */
22
    private $process;
23
24 62
    public function __construct(AbstractParaunitProcess $process)
25
    {
26 62
        $this->process = $process;
27
    }
28
29 57
    public function getProcess(): AbstractParaunitProcess
30
    {
31 57
        return $this->process;
32
    }
33
}
34