BirdInCageEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getPrey() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the EoHoneypotBundle package.
5
 *
6
 * (c) Eymen Gunay <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Eo\HoneypotBundle\Event;
13
14
use Eo\HoneypotBundle\Model\HoneypotPreyInterface;
15
use Symfony\Component\EventDispatcher\Event;
16
17
class BirdInCageEvent extends Event
18
{
19
    /**
20
     * @var HoneypotPreyInterface
21
     */
22
    protected $prey;
23
24
    /**
25
     * Class constructor
26
     *
27
     * @param HoneypotPreyInterface $prey
28
     */
29
    public function __construct(HoneypotPreyInterface $prey)
30
    {
31
        $this->prey = $prey;
32
    }
33
34
    /**
35
     * @return HoneypotPreyInterface
36
     */
37
    public function getPrey()
38
    {
39
        return $this->prey;
40
    }
41
}
42