AbstractController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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
}