PrefixInfo.php 779 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace OSS\Model;
  3. /**
  4. * Class PrefixInfo
  5. *
  6. * ListObjects return Prefix list of classes
  7. * The returned data contains two arrays
  8. * One is to get the list of objects【Can be understood as the corresponding file system file list】
  9. * One is to get Prefix list【Can be understood as the corresponding file system directory list】
  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. }