SMSOfficeMessage   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
dl 0
loc 38
ccs 8
cts 8
cp 1
rs 10

3 Methods

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