Completed
Pull Request — master (#2)
by
unknown
15:16
created

AbstractHook::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
namespace Aoe\Varnish\TYPO3\Hooks;
3
4
use TYPO3\CMS\Extbase\Object\ObjectManager;
5
use TYPO3\CMS\Extbase\Object\ObjectManagerInterface;
6
7
abstract class AbstractHook
8
{
9
    /**
10
     * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager
11
     */
12
    protected $objectManager;
13
14
    /**
15
     * @param ObjectManagerInterface $objectManager
16
     */
17
    public function injectObjectManager(ObjectManagerInterface $objectManager)
18
    {
19
        $this->objectManager = $objectManager;
20
    }
21
22
    public function __construct()
23
    {
24
        $this->objectManager = new ObjectManager();
25
    }
26
}
27