PayplugIPNEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getIPN() 0 4 1
1
<?php
2
3
namespace Alcalyn\PayplugBundle\Event;
4
5
use Alcalyn\PayplugBundle\Model\IPN;
6
7
class PayplugIPNEvent extends PayplugEvent
8
{
9
    /**
10
     * Event throw on valid IPN received.
11
     * 
12
     * The listener receive a PayplugIPNEvent event
13
     * 
14
     * @var string
15
     */
16
    const PAYPLUG_IPN = 'event.payplug.ipn';
17
    
18
    /**
19
     * @var IPN
20
     */
21
    private $ipn;
22
    
23
    /**
24
     * @param IPN $ipn
25
     */
26
    public function __construct(IPN $ipn)
27
    {
28
        $this->ipn = $ipn;
29
    }
30
    
31
    /**
32
     * @return IPN
33
     */
34
    public function getIPN()
35
    {
36
        return $this->ipn;
37
    }
38
}
39