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; |
||
20 | |||
21 | /** @var int */ |
||
22 | protected $minimumNumberOfMessageParts; |
||
23 | |||
24 | 20 | /** @var int */ |
|
25 | protected $maximumNumberOfMessageParts; |
||
26 | 20 | ||
27 | 20 | /** |
|
28 | * @param string $body |
||
29 | */ |
||
30 | public function __construct($body = '') |
||
34 | |||
35 | 20 | /** |
|
36 | * @param string $body |
||
37 | 20 | * @return $this |
|
38 | */ |
||
39 | public function body($body) |
||
45 | 8 | ||
46 | /** |
||
47 | 8 | * @param string|int $originator |
|
48 | 2 | * @return $this |
|
49 | * @throws InvalidMessage |
||
50 | */ |
||
51 | 6 | public function originator($originator) |
|
61 | 4 | ||
62 | /** |
||
63 | 4 | * @param string $reference |
|
64 | 3 | * @return $this |
|
65 | * @throws InvalidMessage |
||
66 | */ |
||
67 | 1 | public function reference($reference) |
|
77 | 3 | ||
78 | /** |
||
79 | 3 | * @param int $tariff Tariff in eurocent |
|
80 | 2 | * @return $this |
|
81 | * @throws InvalidMessage |
||
82 | */ |
||
83 | 1 | public function tariff($tariff) |
|
93 | 10 | ||
94 | 10 | /** |
|
95 | 10 | * @param int $minimum |
|
96 | 10 | * @param int $maximum |
|
97 | 10 | * @return $this |
|
98 | * @throws InvalidMessage |
||
99 | */ |
||
100 | public function multipart($minimum, $maximum) |
||
111 | |||
112 | /** |
||
113 | * @return array |
||
114 | */ |
||
115 | public function toXmlArray() |
||
126 | |||
127 | /** |
||
128 | * @param string $body |
||
129 | * @return static |
||
130 | */ |
||
131 | public static function create($body = '') |
||
135 | } |
||
136 |