Completed
Pull Request — master (#26)
by
unknown
01:44
created

IpnVerificationFailureEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getError() 0 4 1
1
<?php
2
3
namespace Mdb\PayPal\Ipn\Event;
4
5
class IpnVerificationFailureEvent extends IpnVerificationEvent
6
{
7
    /**
8
     * @var string
9
     */
10
    private $error;
11
12
    /**
13
     * @param array $datas
14
     * @param $error
15
     */
16
    public function __construct($datas, $error)
17
    {
18
        $this->error = $error;
19
20
        parent::__construct($datas);
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getError()
27
    {
28
        return $this->error;
29
    }
30
}
31