RayganSmsMessage::getContent()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace NotificationChannels\RayganSms;
4
5
class RayganSmsMessage
6
{
7
    /**
8
     * @var string
9
     */
10
    public $content;
11
12
    /**
13
     * @param string $content
14
     *
15
     * @return static
16
     */
17
    public static function create($content = '')
18
    {
19
        return new static($content);
20
    }
21
22
    /**
23
     * @param string $content
24
     */
25
    public function __construct($content = '')
26
    {
27
        $this->content = $content;
28
    }
29
30
    /**
31
     * @param string $content
32
     *
33
     * @return $this
34
     */
35
    public function content($content)
36
    {
37
        $this->content = $content;
38
39
        return $this;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getContent()
46
    {
47
        return $this->content;
48
    }
49
}
50