Completed
Push — master ( bce25e...d1b735 )
by Daniel
03:13
created

ObjectEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 21
rs 10
c 1
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getAgent() 0 4 1
A getObject() 0 4 1
1
<?php
2
3
namespace Psi\Component\ObjectAgent\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
use Psi\Component\ObjectAgent\AgentInterface;
7
8
final class ObjectEvent extends Event
9
{
10
    private $agent;
11
    private $object;
12
13
    public function __construct(AgentInterface $agent, $object)
14
    {
15
        $this->object = $object;
16
        $this->agent = $agent;
17
    }
18
19
    public function getAgent()
20
    {
21
        return $this->agent;
22
    }
23
24
    public function getObject()
25
    {
26
        return $this->object;
27
    }
28
}
29