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

IndexAllEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 25
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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 IndexAllEvent
8
{
9
    const POSITION_PRE = 'pre';
10
11
    const POSITION_POST = 'post';
12
13
    private $indexerService;
14
    private $position;
15
16
    public function __construct(IndexerService $indexerService, string $position)
17
    {
18
        $this->indexerService = $indexerService;
19
        $this->position = $position;
20
    }
21
22
    public function getIndexerService(): IndexerService
23
    {
24
        return $this->indexerService;
25
    }
26
27
    public function getPosition(): string
28
    {
29
        return $this->position;
30
    }
31
}
32