You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.2 KiB

6 years ago
  1. <?php
  2. namespace OSS\Model;
  3. /**
  4. * Bucket信息,ListBuckets接口返回数据
  5. *
  6. * Class BucketInfo
  7. * @package OSS\Model
  8. */
  9. class BucketInfo
  10. {
  11. /**
  12. * BucketInfo constructor.
  13. *
  14. * @param string $location
  15. * @param string $name
  16. * @param string $createDate
  17. */
  18. public function __construct($location, $name, $createDate)
  19. {
  20. $this->location = $location;
  21. $this->name = $name;
  22. $this->createDate = $createDate;
  23. }
  24. /**
  25. * 得到bucket所在的region
  26. *
  27. * @return string
  28. */
  29. public function getLocation()
  30. {
  31. return $this->location;
  32. }
  33. /**
  34. * 得到bucket的名称
  35. *
  36. * @return string
  37. */
  38. public function getName()
  39. {
  40. return $this->name;
  41. }
  42. /**
  43. * 得到bucket的创建时间
  44. *
  45. * @return string
  46. */
  47. public function getCreateDate()
  48. {
  49. return $this->createDate;
  50. }
  51. /**
  52. * bucket所在的region
  53. *
  54. * @var string
  55. */
  56. private $location;
  57. /**
  58. * bucket的名称
  59. *
  60. * @var string
  61. */
  62. private $name;
  63. /**
  64. * bucket的创建事件
  65. *
  66. * @var string
  67. */
  68. private $createDate;
  69. }