ObjectEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 23
ccs 6
cts 6
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getObject() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace JMS\Serializer\EventDispatcher;
6
7
use JMS\Serializer\Context;
8
9
class ObjectEvent extends Event
10
{
11
    /**
12
     * @var mixed
13 242
     */
14
    private $object;
15 242
16
    /**
17 242
     * @param mixed $object
18 242
     */
19
    public function __construct(Context $context, $object, array $type)
20 233
    {
21
        parent::__construct($context, $type);
22 233
23
        $this->object = $object;
24
    }
25
26
    /**
27
     * @return mixed
28
     */
29
    public function getObject()
30
    {
31
        return $this->object;
32
    }
33
}
34