Skip to content
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
29 changes: 28 additions & 1 deletion src/main/php/Gomoob/Pushwoosh/Model/Notification/IOS.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class IOS implements \JsonSerializable
private $sound;
private $ttl;
private $trimContent;
private $title;
private $subtitle;

/**
* Utility function used to create a new IOS instance.
Expand Down Expand Up @@ -91,7 +93,16 @@ public function isApnsTrimContent()
public function isTrimContent()
{
return $this->trimContent;

}

public function getTitle()
{
return $this->title;
}

public function getSubtitle()
{
return $this->subtitle;
}

/**
Expand All @@ -108,6 +119,8 @@ public function jsonSerialize()
isset($this->sound) ? $json['ios_sound'] = $this->sound : false;
isset($this->ttl) ? $json['ios_ttl'] = $this->ttl : false;
isset($this->trimContent) ? $json['ios_trim_content'] = intval($this->trimContent) : false;
isset($this->title) ? $json['ios_title'] = $this->title : false;
isset($this->subtitle) ? $json['ios_subtitle'] = $this->subtitle : false;

return $json;

Expand Down Expand Up @@ -179,4 +192,18 @@ public function setTrimContent($trimContent)

return $this;
}

public function setTitle($title)
{
$this->title = $title;

return $this;
}

public function setSubtitle($subtitle)
{
$this->subtitle = $subtitle;

return $this;
}
}