IndexDeleteEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
crap 2
1
<?php
2
3
namespace SumoCoders\FrameworkSearchBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
class IndexDeleteEvent extends Event
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $objectType;
13
14
    /**
15
     * @var string
16
     */
17
    protected $otherId;
18
19
    /**
20
     * @param string $objectType
21
     * @param string $otherId
22
     */
23
    public function __construct($objectType, $otherId)
24
    {
25
        $this->objectType = $objectType;
26
        $this->otherId = $otherId;
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    public function getObjectType()
33
    {
34
        return $this->objectType;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getOtherId()
41
    {
42
        return $this->otherId;
43
    }
44
}
45