TeamEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
c 2
b 0
f 0
dl 0
loc 15
ccs 0
cts 5
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTeam() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace Obblm\Core\Event;
4
5
use Obblm\Core\Entity\Team;
6
use Symfony\Contracts\EventDispatcher\Event;
7
8
class TeamEvent extends Event
9
{
10
    public const READY = 'team.ready';
11
    public const NOT_READY = 'team.not.ready';
12
13
    protected $team;
14
15
    public function __construct(Team $team)
16
    {
17
        $this->team = $team;
18
    }
19
20
    public function getTeam():Team
21
    {
22
        return $this->team;
23
    }
24
}
25