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.

AttachmentField::setShort()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the Slack API library.
5
 *
6
 * (c) Cas Leentfaar <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace CL\Slack\Model;
13
14
/**
15
 * @author Cas Leentfaar <[email protected]>
16
 *
17
 * @link Official documentation at https://api.slack.com/docs/attachments
18
 */
19
class AttachmentField extends AbstractModel
20
{
21
    /**
22
     * @var string
23
     */
24
    private $title;
25
26
    /**
27
     * @var string
28
     */
29
    private $value;
30
31
    /**
32
     * @var bool
33
     */
34
    private $short;
35
36
    /**
37
     * @param string $title
38
     */
39 1
    public function setTitle($title)
40
    {
41 1
        $this->title = $title;
42 1
    }
43
44
    /**
45
     * @return string
46
     */
47 3
    public function getTitle()
48
    {
49 3
        return $this->title;
50
    }
51
52
    /**
53
     * @param string $value
54
     */
55 1
    public function setValue($value)
56
    {
57 1
        $this->value = $value;
58 1
    }
59
60
    /**
61
     * @return string
62
     */
63 3
    public function getValue()
64
    {
65 3
        return $this->value;
66
    }
67
68
    /**
69
     * @param bool $short
70
     */
71 1
    public function setShort($short)
72
    {
73 1
        $this->short = $short;
74 1
    }
75
76
    /**
77
     * @return bool
78
     */
79 3
    public function isShort()
80
    {
81 3
        return $this->short;
82
    }
83
}
84