Completed
Push — master ( 757091...704cf7 )
by Tim
02:40
created

IndexSingleEvent   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 65
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A getConfigurationKey() 0 4 1
A getTableName() 0 4 1
A getUid() 0 4 1
A getIndexerService() 0 4 1
A getPosition() 0 4 1
1
<?php
2
3
namespace HDNET\Calendarize\Event;
4
5
use HDNET\Calendarize\Service\IndexerService;
6
7
final class IndexSingleEvent
8
{
9
    const POSITION_PRE = 'pre';
10
11
    const POSITION_POST = 'post';
12
13
    /**
14
     * @var string
15
     */
16
    private $configurationKey;
17
18
    /**
19
     * @var string
20
     */
21
    private $tableName;
22
23
    /**
24
     * @var int
25
     */
26
    private $uid;
27
28
    /**
29
     * @var IndexerService
30
     */
31
    private $indexerService;
32
33
    /**
34
     * @var string
35
     */
36
    private $position;
37
38
    public function __construct(string $configurationKey, string $tableName, int $uid, IndexerService $indexerService, string $position)
39
    {
40
        $this->configurationKey = $configurationKey;
41
        $this->tableName = $tableName;
42
        $this->uid = $uid;
43
        $this->indexerService = $indexerService;
44
        $this->position = $position;
45
    }
46
47
    public function getConfigurationKey(): string
48
    {
49
        return $this->configurationKey;
50
    }
51
52
    public function getTableName(): string
53
    {
54
        return $this->tableName;
55
    }
56
57
    public function getUid(): int
58
    {
59
        return $this->uid;
60
    }
61
62
    public function getIndexerService(): IndexerService
63
    {
64
        return $this->indexerService;
65
    }
66
67
    public function getPosition(): string
68
    {
69
        return $this->position;
70
    }
71
}
72