diff --git a/Message/AndroidMessage.php b/Message/AndroidMessage.php index 1d9f04b..454f020 100644 --- a/Message/AndroidMessage.php +++ b/Message/AndroidMessage.php @@ -66,6 +66,8 @@ class AndroidMessage implements MessageInterface public function setMessage($message) { $this->message = $message; + + return $this; } /** @@ -86,6 +88,8 @@ public function getMessage() public function setData($data) { $this->data = (is_array($data) ? $data : array($data)); + + return $this; } /** @@ -127,6 +131,8 @@ public function setDeviceIdentifier($identifier) { $this->identifier = $identifier; $this->allIdentifiers = array($identifier => $identifier); + + return $this; } /** @@ -169,6 +175,8 @@ public function getCollapseKey() public function setCollapseKey($collapseKey) { $this->collapseKey = $collapseKey; + + return $this; } /** @@ -180,6 +188,8 @@ public function setCollapseKey($collapseKey) public function setGCM($gcm) { $this->isGCM = !!$gcm; + + return $this; } /** @@ -218,6 +228,8 @@ public function addGCMIdentifier($identifier) */ public function setAllIdentifiers($allIdentifiers) { $this->allIdentifiers = array_combine($allIdentifiers, $allIdentifiers); + + return $this; } /** @@ -227,6 +239,8 @@ public function setAllIdentifiers($allIdentifiers) { public function setGCMOptions($options) { $this->gcmOptions = $options; + + return $this; } /**