EnvironmentLoadedEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Cocotte\Environment;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
final class EnvironmentLoadedEvent extends Event
8
{
9
10
    /**
11
     * @var LazyEnvironment
12
     */
13
    private $environment;
14
15
    public function __construct(LazyEnvironment $environment)
16
    {
17
        $this->environment = $environment;
18
    }
19
20
    /**
21
     * @return LazyEnvironment
22
     */
23
    public function environment(): LazyEnvironment
24
    {
25
        return $this->environment;
26
    }
27
28
}