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

IndexAllEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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