| 1 | <?php |
||
| 12 | class ReceiveMessageResult { |
||
| 13 | /** |
||
| 14 | * @var ThreemaMessage |
||
| 15 | */ |
||
| 16 | private $threemaMessage; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string[] |
||
| 20 | */ |
||
| 21 | private $files = array(); |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string[] |
||
| 25 | */ |
||
| 26 | private $errors = array(); |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $messageId; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $messageId |
||
| 35 | * @param ThreemaMessage $threemaMessage |
||
| 36 | */ |
||
| 37 | public function __construct($messageId, ThreemaMessage $threemaMessage) { |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function getMessageId() { |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param $message |
||
| 51 | * @return $this |
||
| 52 | */ |
||
| 53 | public function addError($message) { |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return bool |
||
| 60 | */ |
||
| 61 | public function isSuccess() { |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @param string $key |
||
| 67 | * @param string $file |
||
| 68 | * @return $this |
||
| 69 | */ |
||
| 70 | public function addFile($key, $file) { |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return \string[] |
||
| 77 | */ |
||
| 78 | public function getErrors() { |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @return ThreemaMessage |
||
| 84 | */ |
||
| 85 | public function getThreemaMessage() { |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @return \string[] |
||
| 91 | */ |
||
| 92 | public function getFiles() { |
||
| 95 | } |
||
| 96 |