コード例 #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!");
     }
 }
コード例 #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!');
     }
 }