AbstractTournamentDrawEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace App\Events\Tournament;
4
5
use App\Events\Event;
6
use App\Tournament;
7
8
/**
9
 * Class AbstractTournamentDrawEvent
10
 * @package App\Events\Tournament
11
 */
12
abstract class AbstractTournamentDrawEvent extends Event
13
{
14
    /**
15
     * @var Tournament
16
     */
17
    public $tournament;
18
19
    /**
20
     * AbstractTournamentDrawEvent constructor.
21
     * @param Tournament $tournament
22
     */
23
    public function __construct(Tournament $tournament)
24
    {
25
        $this->tournament = $tournament;
26
    }
27
}
28