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

AbstractHook   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

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 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