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
Push — master ( e91cf6...3a6b3f )
by Alexander
10:43
created

UserPreferenceEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
namespace app\modules\shop\events;
3
4
use yii\base\Event;
5
6
class UserPreferenceEvent extends Event
7
{
8
    private $_key = null;
9
    private $_value = null;
10
11
    /**
12
     * @inheritdoc
13
     */
14
    public function __construct($key, $value, $config = [])
15
    {
16
        parent::__construct($config);
17
18
        $this->_key = $key;
19
        $this->_value = $value;
20
    }
21
22
    /**
23
     * @return string
24
     */
25
    public function getKey()
26
    {
27
        return $this->_key;
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    public function getValue()
34
    {
35
        return $this->_value;
36
    }
37
}
38