AbstractController::__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
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
namespace MyWonderland\Controller;
3
use MyWonderland\Domain\Manager\StorageManager;
4
5
/**
6
 * Created by PhpStorm.
7
 * User: thiago
8
 * Date: 31/03/18
9
 * Time: 12:00
10
 */
11
12
abstract class AbstractController
13
{
14
    /**
15
     * @var \Twig_Environment
16
     */
17
    protected $twig;
18
19
    /**
20
     * @var StorageManager
21
     */
22
    protected $storeManager;
23
24
    /**
25
     * AbstractController constructor.
26
     * @param StorageManager $storageManager
27
     * @param \Twig_Environment $twig
28
     */
29
    public function __construct(StorageManager $storageManager, \Twig_Environment $twig)
30
    {
31
        $this->storeManager = $storageManager;
32
        $this->twig = $twig;
33
    }
34
}