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 | 17 | /** |
|
22 | * @param string $body |
||
23 | 17 | */ |
|
24 | 17 | public function __construct($body = '') |
|
28 | |||
29 | /** |
||
30 | 17 | * @param string $body |
|
31 | * @return $this |
||
32 | 17 | */ |
|
33 | public function body($body) |
||
39 | |||
40 | /** |
||
41 | * @param string|int $originator |
||
42 | 8 | * @return $this |
|
43 | * @throws InvalidMessage |
||
44 | 8 | */ |
|
45 | 2 | public function originator($originator) |
|
55 | |||
56 | /** |
||
57 | * @param string $reference |
||
58 | 4 | * @return $this |
|
59 | * @throws InvalidMessage |
||
60 | 4 | */ |
|
61 | 3 | public function reference($reference) |
|
71 | |||
72 | 9 | /** |
|
73 | * @param int $tariff Tariff in eurocent |
||
74 | 9 | * @return $this |
|
75 | 9 | * @throws InvalidMessage |
|
76 | 9 | */ |
|
77 | 9 | public function tariff($tariff) |
|
87 | 1 | ||
88 | /** |
||
89 | * @return array |
||
90 | */ |
||
91 | public function toXmlArray() |
||
100 | |||
101 | /** |
||
102 | * @param string $body |
||
103 | * @return static |
||
104 | */ |
||
105 | public static function create($body = '') |
||
109 | } |
||
110 |