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

AbstractSlot   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 1
c 3
b 1
f 0
lcom 0
cbo 1
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAccessService() 0 5 1
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