Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 = '') |
|
43 | } |
||
44 | } |
||
45 |