1 | <?php |
||
19 | class SimpleMessage extends AbstractModel |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $ts; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $type; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $subtype; |
||
35 | |||
36 | /** |
||
37 | * @var SimpleChannel |
||
38 | */ |
||
39 | private $channel; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $user; |
||
45 | |||
46 | /** |
||
47 | * @var string |
||
48 | */ |
||
49 | protected $username; |
||
50 | |||
51 | /** |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $text; |
||
55 | |||
56 | /** |
||
57 | * @var array |
||
58 | */ |
||
59 | protected $attachments = []; |
||
60 | |||
61 | /** |
||
62 | * @return string|null The Slack timestamp on which the message was posted |
||
63 | */ |
||
64 | 24 | public function getSlackTimestamp() |
|
68 | |||
69 | /** |
||
70 | * @return string The type of message |
||
71 | */ |
||
72 | 24 | public function getType() |
|
76 | |||
77 | /** |
||
78 | * @return null|string The subtype of message |
||
79 | */ |
||
80 | public function getSubtype() |
||
84 | |||
85 | /** |
||
86 | * @return SimpleChannel |
||
87 | */ |
||
88 | public function getChannel() |
||
92 | |||
93 | /** |
||
94 | * @return string|null The ID of the user that posted the message, |
||
95 | * can be null if the message was made by Slack itself. |
||
96 | */ |
||
97 | 24 | public function getUserId() |
|
101 | |||
102 | /** |
||
103 | * @return string|null The username belonging to the user that posted the message, |
||
104 | * can be null if the message was made by Slack itself. |
||
105 | */ |
||
106 | 24 | public function getUsername() |
|
110 | |||
111 | /** |
||
112 | * @return string The actual text of the message. |
||
113 | */ |
||
114 | 24 | public function getText() |
|
118 | } |
||
119 |