Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Update AndroidMessage.php #164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Message/AndroidMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class AndroidMessage implements MessageInterface
public function setMessage($message)
{
$this->message = $message;

return $this;
}

/**
Expand All @@ -86,6 +88,8 @@ public function getMessage()
public function setData($data)
{
$this->data = (is_array($data) ? $data : array($data));

return $this;
}

/**
Expand Down Expand Up @@ -127,6 +131,8 @@ public function setDeviceIdentifier($identifier)
{
$this->identifier = $identifier;
$this->allIdentifiers = array($identifier => $identifier);

return $this;
}

/**
Expand Down Expand Up @@ -169,6 +175,8 @@ public function getCollapseKey()
public function setCollapseKey($collapseKey)
{
$this->collapseKey = $collapseKey;

return $this;
}

/**
Expand All @@ -180,6 +188,8 @@ public function setCollapseKey($collapseKey)
public function setGCM($gcm)
{
$this->isGCM = !!$gcm;

return $this;
}

/**
Expand Down Expand Up @@ -218,6 +228,8 @@ public function addGCMIdentifier($identifier)
*/
public function setAllIdentifiers($allIdentifiers) {
$this->allIdentifiers = array_combine($allIdentifiers, $allIdentifiers);

return $this;
}

/**
Expand All @@ -227,6 +239,8 @@ public function setAllIdentifiers($allIdentifiers) {
public function setGCMOptions($options)
{
$this->gcmOptions = $options;

return $this;
}

/**
Expand Down