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 ( 53051f...8c4fc0 )
by Jhao
01:31
created

SmscRuMessage   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 85
Duplicated Lines 0 %

Coupling/Cohesion

Components 3
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 3
cbo 0
dl 0
loc 85
ccs 0
cts 23
cp 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
A sendAt() 0 6 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
     * Time of sending a message.
23
     *
24
     * @var \DateTimeInterface
25
     */
26
    public $sendAt;
27
28
    /**
29
     * Create a new message instance.
30
     *
31
     * @param  string $content
32
     *
33
     * @return static
34
     */
35
    public static function create($content = '')
36
    {
37
        return new static($content);
38
    }
39
40
    /**
41
     * @param  string  $content
42
     */
43
    public function __construct($content = '')
44
    {
45
        $this->content = $content;
46
    }
47
48
    /**
49
     * Set the message content.
50
     *
51
     * @param  string  $content
52
     *
53
     * @return $this
54
     */
55
    public function content($content)
56
    {
57
        $this->content = $content;
58
59
        return $this;
60
    }
61
62
    /**
63
     * Set the phone number or sender name the message should be sent from.
64
     *
65
     * @param  string  $from
66
     *
67
     * @return $this
68
     */
69
    public function from($from)
70
    {
71
        $this->from = $from;
72
73
        return $this;
74
    }
75
76
    /**
77
     * Set the time the message should be sent.
78
     *
79
     * @param  \DateTimeInterface|null  $sendAt
80
     *
81
     * @return $this
82
     */
83
    public function sendAt(\DateTimeInterface $sendAt = null)
84
    {
85
        $this->sendAt = $sendAt;
86
87
        return $this;
88
    }
89
}
90