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.
Completed
Push — master ( 2d6991...ab3243 )
by Stan
02:44
created

ForceReply::setSelective()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Teebot\Entity;
4
5
class ForceReply extends AbstractEntity {
6
7
    protected $force_reply = true;
8
9
    protected $selective;
10
11
    /**
12
     * Always set force_reply flag to true
13
     */
14
    public function setForceReply()
15
    {
16
        $this->force_reply = true;
17
    }
18
19
    /**
20
     * @return boolean
21
     */
22
    public function getForceReply()
23
    {
24
        return $this->force_reply;
25
    }
26
27
    /**
28
     * @param mixed $selective
29
     *
30
     * @return $this
31
     */
32
    public function setSelective($selective)
33
    {
34
        $this->selective = $selective;
35
36
        return $this;
37
    }
38
39
    /**
40
     * @return mixed
41
     */
42
    public function getSelective()
43
    {
44
        return $this->selective;
45
    }
46
}
47