IndexGenerationEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getProject() 0 4 1
1
<?php
2
3
namespace Padawan\Domain\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
use Padawan\Domain\Project;
7
8
class IndexGenerationEvent extends Event
9
{
10
    public function __construct(Project $project)
11
    {
12
        $this->project = $project;
13
    }
14
15
    /** @return Project */
16
    public function getProject()
17
    {
18
        return $this->project;
19
    }
20
21
    /** @var Project */
22
    private $project;
23
}
24