NewRepositoryEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 23
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getProject() 0 3 1
A __construct() 0 4 1
A getRepository() 0 3 1
1
<?php
2
3
namespace App\Event\Project;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
use App\Entity\Project\{
8
    Project,
9
    Repository
10
};
11
12
class NewRepositoryEvent extends Event
13
{
14
    /** @var Project **/
15
    protected $project;
16
    /** @var Repository **/
17
    protected $repository;
18
    
19
    const NAME = 'project.new_repository';
20
    
21
    public function __construct(Project $project, Repository $repository)
22
    {
23
        $this->project = $project;
24
        $this->repository = $repository;
25
    }
26
    
27
    public function getProject(): Project
28
    {
29
        return $this->project;
30
    }
31
    
32
    public function getRepository(): Repository
33
    {
34
        return $this->repository;
35
    }
36
}