Completed
Push — master ( d4c7f5...603b58 )
by Roman
06:55
created

Message::getText()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 1
cts 1
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace RM\SMSender;
4
5
use RM\SMSender\IMessage;
6
7
/**
8
 * Basic implementation of Message.
9
 */
10 1
class Message implements IMessage
11
{
12
	/** @var string */
13
	protected $from;
14
15
	/** @var string */
16
	protected $to;
17
18
	/** @var string */
19
	protected $text;
20
21
	/**
22
	 * @param  string $from
23
	 * @return self
24
	 */
25
	public function setFrom($from)
26
	{
27 1
		$this->from = $from;
28 1
		return $this;
29
	}
30
31
	/**
32
	 * @param  string $number
33
	 * @return self
34
	 */
35
	public function setTo($number)
36
	{
37 1
		$this->to = $number;
38 1
		return $this;
39
	}
40
41
	/**
42
	 * @param  string $text
43
	 * @return self
44
	 */
45
	public function setText($text)
46
	{
47 1
		$this->text = $text;
48 1
		return $this;
49
	}
50
51
	/**
52
	 * @return string
53
	 */
54
	public function getFrom()
55
	{
56 1
		return $this->from;
57
	}
58
59
	/**
60
	 * @return string
61
	 */
62
	public function getTo()
63
	{
64 1
		return $this->to;
65
	}
66
67
	/**
68
	 * @return string
69
	 */
70
	public function getText()
71
	{
72 1
		return $this->text;
73
	}
74
}
75