PlaySmsMessage::setMessage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace CoreProc\NotificationChannels\PlaySms;
4
5
class PlaySmsMessage
6
{
7
    private $message;
8
9
    public function __construct(string $message = '')
10
    {
11
        $this->message = $message;
12
    }
13
14
    /**
15
     * @return string
16
     */
17
    public function getMessage(): string
18
    {
19
        return $this->message;
20
    }
21
22
    /**
23
     * @param string $message
24
     * @return PlaySmsMessage
25
     */
26
    public function setMessage(string $message): self
27
    {
28
        $this->message = $message;
29
30
        return $this;
31
    }
32
33
    public function __toString()
34
    {
35
        return $this->message;
36
    }
37
}
38