CustomCompleterEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Padawan\Domain\Event;
4
5
use Padawan\Domain\Completion\Context;
6
use Padawan\Domain\Project;
7
use Symfony\Component\EventDispatcher\Event;
8
9
class CustomCompleterEvent extends Event
10
{
11
    /** @var CompleterInterface */
12
    public $completer = null;
13
    /** @var Context */
14
    public $context;
15
    /** @var Project */
16
    public $project;
17
    public function __construct(Project $project, Context $context)
18
    {
19
        $this->context = $context;
20
        $this->project = $project;
21
    }
22
}
23