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.

35 lines
780 B

6 years ago
  1. <?php
  2. namespace OSS\Model;
  3. /**
  4. * Class PrefixInfo
  5. *
  6. * listObjects接口中返回的Prefix列表中的类
  7. * listObjects接口返回数据中包含两个Array:
  8. * 一个是拿到的Object列表【可以理解成对应文件系统中的文件列表】
  9. * 一个是拿到的Prefix列表【可以理解成对应文件系统中的目录列表】
  10. *
  11. * @package OSS\Model
  12. * @link http://help.aliyun.com/document_detail/oss/api-reference/bucket/GetBucket.html
  13. */
  14. class PrefixInfo
  15. {
  16. /**
  17. * PrefixInfo constructor.
  18. * @param string $prefix
  19. */
  20. public function __construct($prefix)
  21. {
  22. $this->prefix = $prefix;
  23. }
  24. /**
  25. * @return string
  26. */
  27. public function getPrefix()
  28. {
  29. return $this->prefix;
  30. }
  31. private $prefix;
  32. }