ObjectEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 5
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Psi\Component\ObjectAgent\Event;
6
7
use Psi\Component\ObjectAgent\AgentInterface;
8
use Symfony\Component\EventDispatcher\Event;
9
10
final class ObjectEvent extends Event
11
{
12
    private $agent;
13
    private $object;
14
15
    public function __construct(AgentInterface $agent, $object)
16
    {
17
        $this->object = $object;
18
        $this->agent = $agent;
19
    }
20
21
    public function getAgent()
22
    {
23
        return $this->agent;
24
    }
25
26
    public function getObject()
27
    {
28
        return $this->object;
29
    }
30
}
31