function isComplete() { parent::isComplete(); if (!array_key_exists("alias", $this->data) && !array_key_exists("file_id", $this->data)) { throw new Exception("You need to set alias or upload file for customizedcast!"); } }
public function isComplete() { parent::isComplete(); if (!array_key_exists('alias', $this->data) && !array_key_exists('file_id', $this->data)) { throw new \InvalidArgumentException('You need to set alias or upload file for customizedcast!'); } }
function __construct() { parent::__construct(); $this->data["type"] = "unicast"; $this->data["device_tokens"] = NULL; }
public function __construct() { parent::__construct(); $this->data['type'] = 'groupcast'; $this->data['filter'] = null; }
public function __construct() { parent::__construct(); $this->data['type'] = 'broadcast'; }
function __construct() { parent::__construct(); $this->data["type"] = "filecast"; $this->data["file_id"] = NULL; }
public function __construct() { parent::__construct(); $this->data['type'] = 'unicast'; $this->data['device_tokens'] = null; }
function __construct() { parent::__construct(); $this->data["type"] = "broadcast"; }
function __construct() { parent::__construct(); $this->data["type"] = "groupcast"; $this->data["filter"] = NULL; }
public function __construct() { parent::__construct(); $this->data['type'] = 'filecast'; $this->data['file_id'] = null; }