material.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?php
  2. // This file is auto-generated, don't edit it. Thanks.
  3. namespace AlibabaCloud\SDK\Cloudauth\V20190307\Models\DescribeVerifyResultResponseBody;
  4. use AlibabaCloud\SDK\Cloudauth\V20190307\Models\DescribeVerifyResultResponseBody\material\idCardInfo;
  5. use AlibabaCloud\Tea\Model;
  6. class material extends Model
  7. {
  8. /**
  9. * @var string
  10. */
  11. public $faceGlobalUrl;
  12. /**
  13. * @var string
  14. */
  15. public $faceImageUrl;
  16. /**
  17. * @var bool
  18. */
  19. public $faceMask;
  20. /**
  21. * @var string
  22. */
  23. public $faceQuality;
  24. /**
  25. * @var idCardInfo
  26. */
  27. public $idCardInfo;
  28. /**
  29. * @var string
  30. */
  31. public $idCardName;
  32. /**
  33. * @var string
  34. */
  35. public $idCardNumber;
  36. /**
  37. * @var string[]
  38. */
  39. public $videoUrls;
  40. protected $_name = [
  41. 'faceGlobalUrl' => 'FaceGlobalUrl',
  42. 'faceImageUrl' => 'FaceImageUrl',
  43. 'faceMask' => 'FaceMask',
  44. 'faceQuality' => 'FaceQuality',
  45. 'idCardInfo' => 'IdCardInfo',
  46. 'idCardName' => 'IdCardName',
  47. 'idCardNumber' => 'IdCardNumber',
  48. 'videoUrls' => 'VideoUrls',
  49. ];
  50. public function validate()
  51. {
  52. }
  53. public function toMap()
  54. {
  55. $res = [];
  56. if (null !== $this->faceGlobalUrl) {
  57. $res['FaceGlobalUrl'] = $this->faceGlobalUrl;
  58. }
  59. if (null !== $this->faceImageUrl) {
  60. $res['FaceImageUrl'] = $this->faceImageUrl;
  61. }
  62. if (null !== $this->faceMask) {
  63. $res['FaceMask'] = $this->faceMask;
  64. }
  65. if (null !== $this->faceQuality) {
  66. $res['FaceQuality'] = $this->faceQuality;
  67. }
  68. if (null !== $this->idCardInfo) {
  69. $res['IdCardInfo'] = null !== $this->idCardInfo ? $this->idCardInfo->toMap() : null;
  70. }
  71. if (null !== $this->idCardName) {
  72. $res['IdCardName'] = $this->idCardName;
  73. }
  74. if (null !== $this->idCardNumber) {
  75. $res['IdCardNumber'] = $this->idCardNumber;
  76. }
  77. if (null !== $this->videoUrls) {
  78. $res['VideoUrls'] = $this->videoUrls;
  79. }
  80. return $res;
  81. }
  82. /**
  83. * @param array $map
  84. *
  85. * @return material
  86. */
  87. public static function fromMap($map = [])
  88. {
  89. $model = new self();
  90. if (isset($map['FaceGlobalUrl'])) {
  91. $model->faceGlobalUrl = $map['FaceGlobalUrl'];
  92. }
  93. if (isset($map['FaceImageUrl'])) {
  94. $model->faceImageUrl = $map['FaceImageUrl'];
  95. }
  96. if (isset($map['FaceMask'])) {
  97. $model->faceMask = $map['FaceMask'];
  98. }
  99. if (isset($map['FaceQuality'])) {
  100. $model->faceQuality = $map['FaceQuality'];
  101. }
  102. if (isset($map['IdCardInfo'])) {
  103. $model->idCardInfo = idCardInfo::fromMap($map['IdCardInfo']);
  104. }
  105. if (isset($map['IdCardName'])) {
  106. $model->idCardName = $map['IdCardName'];
  107. }
  108. if (isset($map['IdCardNumber'])) {
  109. $model->idCardNumber = $map['IdCardNumber'];
  110. }
  111. if (isset($map['VideoUrls'])) {
  112. if (!empty($map['VideoUrls'])) {
  113. $model->videoUrls = $map['VideoUrls'];
  114. }
  115. }
  116. return $model;
  117. }
  118. }