typeDetails['shortcode'] = $shortcode; $this->typeDetails['keyword'] = $keyword; $this->typeDetails['tariff'] = $tariff; $this->typeDetails['mid'] = $mid; $this->type = self::TYPE_PREMIUM; } /** * @param $header * @param $body */ public function setBinarySms($header, $body) { $this->typeDetails['udh'] = $header; $this->body = $body; $this->type = self::TYPE_BINARY; } /** * @param $bool */ public function setFlash($bool) { if ($bool === true) { $this->mclass = 0; } else { $this->mclass = 1; } } /** * Get the created id * * @return mixed */ public function getId() { return $this->id; } /** * Get the created href * * @return string */ public function getHref() { return $this->href; } /** * Get the $createdDatetime value * * @return string */ public function getCreatedDatetime() { return $this->createdDatetime; } /** * @param $object * * @return $this|void */ public function loadFromArray ($object) { parent::loadFromArray($object); if (!empty($this->recipients->items)) { foreach($this->recipients->items AS &$item) { $Recipient = new Recipient(); $Recipient->loadFromArray($item); $item = $Recipient; } } return $this; } }