| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <?php
- // This file is auto-generated, don't edit it. Thanks.
- namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
- use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddSmsSignRequest\signFileList;
- use AlibabaCloud\Tea\Model;
- class AddSmsSignRequest extends Model
- {
- /**
- * @var int
- */
- public $ownerId;
- /**
- * @var string
- */
- public $remark;
- /**
- * @var string
- */
- public $resourceOwnerAccount;
- /**
- * @var int
- */
- public $resourceOwnerId;
- /**
- * @var signFileList[]
- */
- public $signFileList;
- /**
- * @var string
- */
- public $signName;
- /**
- * @var int
- */
- public $signSource;
- protected $_name = [
- 'ownerId' => 'OwnerId',
- 'remark' => 'Remark',
- 'resourceOwnerAccount' => 'ResourceOwnerAccount',
- 'resourceOwnerId' => 'ResourceOwnerId',
- 'signFileList' => 'SignFileList',
- 'signName' => 'SignName',
- 'signSource' => 'SignSource',
- ];
- public function validate()
- {
- }
- public function toMap()
- {
- $res = [];
- if (null !== $this->ownerId) {
- $res['OwnerId'] = $this->ownerId;
- }
- if (null !== $this->remark) {
- $res['Remark'] = $this->remark;
- }
- if (null !== $this->resourceOwnerAccount) {
- $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
- }
- if (null !== $this->resourceOwnerId) {
- $res['ResourceOwnerId'] = $this->resourceOwnerId;
- }
- if (null !== $this->signFileList) {
- $res['SignFileList'] = [];
- if (null !== $this->signFileList && \is_array($this->signFileList)) {
- $n = 0;
- foreach ($this->signFileList as $item) {
- $res['SignFileList'][$n++] = null !== $item ? $item->toMap() : $item;
- }
- }
- }
- if (null !== $this->signName) {
- $res['SignName'] = $this->signName;
- }
- if (null !== $this->signSource) {
- $res['SignSource'] = $this->signSource;
- }
- return $res;
- }
- /**
- * @param array $map
- *
- * @return AddSmsSignRequest
- */
- public static function fromMap($map = [])
- {
- $model = new self();
- if (isset($map['OwnerId'])) {
- $model->ownerId = $map['OwnerId'];
- }
- if (isset($map['Remark'])) {
- $model->remark = $map['Remark'];
- }
- if (isset($map['ResourceOwnerAccount'])) {
- $model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
- }
- if (isset($map['ResourceOwnerId'])) {
- $model->resourceOwnerId = $map['ResourceOwnerId'];
- }
- if (isset($map['SignFileList'])) {
- if (!empty($map['SignFileList'])) {
- $model->signFileList = [];
- $n = 0;
- foreach ($map['SignFileList'] as $item) {
- $model->signFileList[$n++] = null !== $item ? signFileList::fromMap($item) : $item;
- }
- }
- }
- if (isset($map['SignName'])) {
- $model->signName = $map['SignName'];
- }
- if (isset($map['SignSource'])) {
- $model->signSource = $map['SignSource'];
- }
- return $model;
- }
- }
|