| 1 | <?php |
||
| 10 | class TextMessage extends ThreemaMessage { |
||
| 11 | const TYPE_CODE = 0x01; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $text; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param string $text |
||
| 20 | */ |
||
| 21 | public function __construct($text) { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return string text |
||
| 27 | */ |
||
| 28 | public function getText() { |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function __toString() { |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get the message type code of this message. |
||
| 41 | * |
||
| 42 | * @return int message type code |
||
| 43 | */ |
||
| 44 | public function getTypeCode() { |
||
| 47 | } |
||
| 48 |