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 ( f8e8b5...ced53b )
by Jhao
02:56
created

SmscRuMessage   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 2
cbo 0
dl 0
loc 64
ccs 0
cts 18
cp 0
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 from() 0 6 1
1
<?php
2
3
namespace NotificationChannels\SmscRu;
4
5
class SmscRuMessage
6
{
7
    /**
8
     * The phone number the message should be sent from.
9
     *
10
     * @var string
11
     */
12
    public $from = '';
13
14
    /**
15
     * The message content.
16
     *
17
     * @var string
18
     */
19
    public $content = '';
20
21
    /**
22
     * Create a new message instance.
23
     *
24
     * @param  string $content
25
     *
26
     * @return static
27
     */
28
    public static function create($content = '')
29
    {
30
        return new static($content);
31
    }
32
33
    /**
34
     * @param  string  $content
35
     */
36
    public function __construct($content = '')
37
    {
38
        $this->content = $content;
39
    }
40
41
    /**
42
     * Set the message content.
43
     *
44
     * @param  string  $content
45
     *
46
     * @return $this
47
     */
48
    public function content($content)
49
    {
50
        $this->content = $content;
51
52
        return $this;
53
    }
54
55
    /**
56
     * Set the phone number or sender name the message should be sent from.
57
     *
58
     * @param  string  $from
59
     *
60
     * @return $this
61
     */
62
    public function from($from)
63
    {
64
        $this->from = $from;
65
66
        return $this;
67
    }
68
}
69