IndexDeleteEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 38
ccs 0
cts 13
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getObjectType() 0 4 1
A getOtherId() 0 4 1
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