GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

PayboxResponseEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Lexik\Bundle\PayboxBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
/**
8
 * PayboxResponseEvent class.
9
 *
10
 * @author Olivier Maisonneuve <[email protected]>
11
 */
12
class PayboxResponseEvent extends Event
13
{
14
    /**
15
     * @var array
16
     */
17
    private $data;
18
19
    /**
20
     * @var boolean
21
     */
22
    private $verified;
23
24
    /**
25
     * Constructor.
26
     *
27
     * @param array   $data
28
     * @param boolean $verified
29
     */
30
    public function __construct(array $data, $verified = false)
31
    {
32
        $this->data = $data;
33
        $this->verified = (bool) $verified;
34
    }
35
36
    /**
37
     * Returns all parameters sent on IPN.
38
     *
39
     * @return array
40
     */
41
    public function getData()
42
    {
43
        return $this->data;
44
    }
45
46
    /**
47
     * Returns true if signature verification was successful.
48
     *
49
     * @return boolean
50
     */
51
    public function isVerified()
52
    {
53
        return $this->verified;
54
    }
55
}
56