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.
Test Setup Failed
Pull Request — master (#91)
by
unknown
07:24
created

PayboxResponseEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 61
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getData() 0 4 1
A getAccount() 0 4 1
A isVerified() 0 4 1
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 string
21
     */
22
    private $account;
23
24
    /**
25
     * @var boolean
26
     */
27
    private $verified;
28
29
    /**
30
     * Constructor.
31
     *
32
     * @param array   $data
33
     * @param string  $account
34
     * @param boolean $verified
35
     */
36
    public function __construct(array $data, $account, $verified = false)
37
    {
38
        $this->data = $data;
39
        $this->account = $account;
40
        $this->verified = (bool) $verified;
41
    }
42
43
    /**
44
     * Returns all parameters sent on IPN.
45
     *
46
     * @return array
47
     */
48
    public function getData()
49
    {
50
        return $this->data;
51
    }
52
53
    /**
54
     * Returns the account in relation with the IPN.
55
     *
56
     * @return string
57
     */
58
    public function getAccount()
59
    {
60
        return $this->account;
61
    }
62
63
    /**
64
     * Returns true if signature verification was successful.
65
     *
66
     * @return boolean
67
     */
68
    public function isVerified()
69
    {
70
        return $this->verified;
71
    }
72
}
73