Passed
Pull Request — master (#1)
by Peter
07:07
created

TemplateEngineReady   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 21
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getEngine() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Framework\Events;
6
7
use AbterPhp\Framework\Template\Engine;
8
9
class TemplateEngineReady
10
{
11
    /** @var Engine */
12
    private $engine;
13
14
    /**
15
     * TemplateEngineReady constructor.
16
     *
17
     * @param Engine $engine
18
     */
19
    public function __construct(Engine $engine)
20
    {
21
        $this->engine = $engine;
22
    }
23
24
    /**
25
     * @return Engine
26
     */
27
    public function getEngine(): Engine
28
    {
29
        return $this->engine;
30
    }
31
}
32