Completed
Push — master ( 8b149d...d0a098 )
by Kevin
07:29
created

AbstractHook::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
ccs 3
cts 3
cp 1
cc 1
eloc 2
nc 1
nop 0
crap 1
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 3
    public function injectObjectManager(ObjectManagerInterface $objectManager)
18
    {
19 3
        $this->objectManager = $objectManager;
20 3
    }
21
22 3
    public function __construct()
23
    {
24 3
        $this->objectManager = new ObjectManager();
25 3
    }
26
}
27