RayganSmsMessage   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 7
dl 0
loc 43
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
A getContent() 0 3 1
A content() 0 5 1
A __construct() 0 3 1
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