data.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. // This file is auto-generated, don't edit it. Thanks.
  3. namespace AlibabaCloud\SDK\Cloudauth\V20190307\Models\DetectFaceAttributesResponseBody;
  4. use AlibabaCloud\SDK\Cloudauth\V20190307\Models\DetectFaceAttributesResponseBody\data\faceInfos;
  5. use AlibabaCloud\Tea\Model;
  6. class data extends Model
  7. {
  8. /**
  9. * @var faceInfos
  10. */
  11. public $faceInfos;
  12. /**
  13. * @example 1920
  14. *
  15. * @var int
  16. */
  17. public $imgHeight;
  18. /**
  19. * @example 1080
  20. *
  21. * @var int
  22. */
  23. public $imgWidth;
  24. protected $_name = [
  25. 'faceInfos' => 'FaceInfos',
  26. 'imgHeight' => 'ImgHeight',
  27. 'imgWidth' => 'ImgWidth',
  28. ];
  29. public function validate()
  30. {
  31. }
  32. public function toMap()
  33. {
  34. $res = [];
  35. if (null !== $this->faceInfos) {
  36. $res['FaceInfos'] = null !== $this->faceInfos ? $this->faceInfos->toMap() : null;
  37. }
  38. if (null !== $this->imgHeight) {
  39. $res['ImgHeight'] = $this->imgHeight;
  40. }
  41. if (null !== $this->imgWidth) {
  42. $res['ImgWidth'] = $this->imgWidth;
  43. }
  44. return $res;
  45. }
  46. /**
  47. * @param array $map
  48. *
  49. * @return data
  50. */
  51. public static function fromMap($map = [])
  52. {
  53. $model = new self();
  54. if (isset($map['FaceInfos'])) {
  55. $model->faceInfos = faceInfos::fromMap($map['FaceInfos']);
  56. }
  57. if (isset($map['ImgHeight'])) {
  58. $model->imgHeight = $map['ImgHeight'];
  59. }
  60. if (isset($map['ImgWidth'])) {
  61. $model->imgWidth = $map['ImgWidth'];
  62. }
  63. return $model;
  64. }
  65. }