Ejemplo n.º 1
0
 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!");
     }
 }
Ejemplo n.º 2
0
 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!');
     }
 }
Ejemplo n.º 3
0
 function __construct()
 {
     parent::__construct();
     $this->data["type"] = "unicast";
     $this->data["device_tokens"] = NULL;
 }
Ejemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     $this->data['type'] = 'groupcast';
     $this->data['filter'] = null;
 }
Ejemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
     $this->data['type'] = 'broadcast';
 }
Ejemplo n.º 6
0
 function __construct()
 {
     parent::__construct();
     $this->data["type"] = "filecast";
     $this->data["file_id"] = NULL;
 }
Ejemplo n.º 7
0
 public function __construct()
 {
     parent::__construct();
     $this->data['type'] = 'unicast';
     $this->data['device_tokens'] = null;
 }
Ejemplo n.º 8
0
 function __construct()
 {
     parent::__construct();
     $this->data["type"] = "broadcast";
 }
Ejemplo n.º 9
0
 function __construct()
 {
     parent::__construct();
     $this->data["type"] = "groupcast";
     $this->data["filter"] = NULL;
 }
Ejemplo n.º 10
0
 public function __construct()
 {
     parent::__construct();
     $this->data['type'] = 'filecast';
     $this->data['file_id'] = null;
 }