@@ 74-83 (lines=10) @@ | ||
71 | * |
|
72 | * @return MessageBuilder |
|
73 | */ |
|
74 | public function message($message) |
|
75 | { |
|
76 | if (is_string($message)) { |
|
77 | $message = new Text(['content' => $message]); |
|
78 | } |
|
79 | ||
80 | $this->message = $message; |
|
81 | ||
82 | return $this; |
|
83 | } |
|
84 | ||
85 | /** |
|
86 | * Set staff account to send message. |
@@ 91-100 (lines=10) @@ | ||
88 | * |
|
89 | * @return $this |
|
90 | */ |
|
91 | public function message($message) |
|
92 | { |
|
93 | if (is_string($message)) { |
|
94 | $message = new Text(['content' => $message]); |
|
95 | } |
|
96 | ||
97 | $this->message = $message; |
|
98 | ||
99 | return $this; |
|
100 | } |
|
101 | ||
102 | /** |
|
103 | * Set agent to send message. |