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

YmlOffersEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getOffers() 0 4 1
A setOffers() 0 8 2
A clearHandled() 0 5 1
1
<?php
2
namespace app\modules\shop\events\yml;
3
4
use yii\base\Event;
5
6
class YmlOffersEvent extends Event
7
{
8
    private $offers = [];
9
10
    /**
11
     * @return array
12
     */
13
    public function getOffers()
14
    {
15
        return $this->offers;
16
    }
17
18
    /**
19
     * @param array $offers
20
     * @return YmlOffersEvent
21
     */
22
    public function setOffers($offers)
23
    {
24
        if (true === is_array($offers)) {
25
            $this->offers = $offers;
26
        }
27
28
        return $this;
29
    }
30
31
    /**
32
     * @return $this
33
     */
34
    public function clearHandled()
35
    {
36
        $this->handled = false;
37
        return $this;
38
    }
39
}
40