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

AbstractHook   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 20
ccs 0
cts 6
cp 0
rs 10

2 Methods

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