1 | <?php |
||
7 | class CmsmsMessage |
||
8 | { |
||
9 | /** @var string */ |
||
10 | protected $body; |
||
11 | |||
12 | /** @var string */ |
||
13 | protected $originator; |
||
14 | |||
15 | /** @var string */ |
||
16 | protected $reference; |
||
17 | |||
18 | /** @var int */ |
||
19 | protected $tariff = 0; |
||
20 | |||
21 | /** @var int */ |
||
22 | protected $minimumNumberOfMessageParts; |
||
23 | |||
24 | /** @var int */ |
||
25 | protected $maximumNumberOfMessageParts; |
||
26 | |||
27 | /** |
||
28 | * @param string $body |
||
29 | */ |
||
30 | 25 | public function __construct($body = '') |
|
34 | |||
35 | /** |
||
36 | * @param string $body |
||
37 | * @return $this |
||
38 | */ |
||
39 | 25 | public function body($body) |
|
45 | |||
46 | /** |
||
47 | * @param string|int $originator |
||
48 | * @return $this |
||
49 | * @throws InvalidMessage |
||
50 | */ |
||
51 | 9 | public function originator($originator) |
|
61 | |||
62 | /** |
||
63 | * @param string $reference |
||
64 | * @return $this |
||
65 | * @throws InvalidMessage |
||
66 | */ |
||
67 | 4 | public function reference($reference) |
|
77 | |||
78 | /** |
||
79 | * @param int $tariff Tariff in eurocent |
||
80 | * @return $this |
||
81 | * @throws InvalidMessage |
||
82 | */ |
||
83 | 4 | public function tariff($tariff) |
|
93 | |||
94 | /** |
||
95 | * @return int |
||
96 | */ |
||
97 | 5 | public function getTariff() |
|
101 | |||
102 | /** |
||
103 | * @param int $minimum |
||
104 | * @param int $maximum |
||
105 | * @return $this |
||
106 | * @throws InvalidMessage |
||
107 | */ |
||
108 | 4 | public function multipart($minimum, $maximum) |
|
119 | |||
120 | /** |
||
121 | * @return array |
||
122 | */ |
||
123 | 11 | public function toXmlArray() |
|
133 | |||
134 | /** |
||
135 | * @param string $body |
||
136 | * @return static |
||
137 | */ |
||
138 | 1 | public static function create($body = '') |
|
142 | } |
||
143 |