diff --git a/src/CL/Slack/Model/SimpleMessage.php b/src/CL/Slack/Model/SimpleMessage.php index c06a2220..4bbbaf27 100644 --- a/src/CL/Slack/Model/SimpleMessage.php +++ b/src/CL/Slack/Model/SimpleMessage.php @@ -107,4 +107,20 @@ public function getText() { return $this->text; } + + /** + * @return array of attachments + */ + public function getAttachments() + { + return $this->attachments; + } + + /** + * @return boolean wether or not this message has attachments + */ + public function hasAttachments() + { + return count($this->attachments) > 0; + } }