Completed
Push — master ( bbe443...f4a6ec )
by Tim
24:42 queued 09:39
created

AbstractSlot::getAccessService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
/**
3
 * General Slot information
4
 *
5
 * @package Html5videoplayerPowermail\Slots
6
 * @author  Tim Lochmüller
7
 */
8
9
namespace HVP\Html5videoplayerPowermail\Slots;
10
11
use HVP\Html5videoplayerPowermail\Service\AccessService;
12
use TYPO3\CMS\Extbase\Object\ObjectManager;
13
14
/**
15
 * General Slot information
16
 *
17
 * @author     Tim Lochmüller
18
 */
19
abstract class AbstractSlot
20
{
21
22
    /**
23
     * Get the access service+
24
     *
25
     * @return AccessService
26
     */
27
    protected function getAccessService()
28
    {
29
        $objectManager = new ObjectManager();
30
        return $objectManager->get(AccessService::class);
31
    }
32
}
33