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.

ClickatellMessage   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 0
dl 0
loc 43
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
A __construct() 0 4 1
A content() 0 6 1
A getContent() 0 4 1
1
<?php
2
3
namespace NotificationChannels\Clickatell;
4
5
class ClickatellMessage
6
{
7
    /** @var string */
8
    public $content;
9
10
    /**
11
     * @param string $content
12
     *
13
     * @return static
14
     */
15 2
    public static function create($content = '')
16
    {
17 2
        return new static($content);
18
    }
19
20
    /**
21
     * @param string $content
22
     */
23 3
    public function __construct($content = '')
24
    {
25 3
        $this->content = $content;
26 3
    }
27
28
    /**
29
     * @param string $content
30
     *
31
     * @return $this
32
     */
33 1
    public function content($content)
34
    {
35 1
        $this->content = $content;
36
37 1
        return $this;
38
    }
39
40
    /**
41
     * @return string
42
     */
43 2
    public function getContent()
44
    {
45 2
        return $this->content;
46
    }
47
}
48