MicrosoftAzureStorageBlobModelsAccessPolicy

Holds container access policy elements.

Defined (1)

The class is defined in the following location(s).

/lib/Azure/MicrosoftAzureStorage/Blob/Models/AccessPolicy.php  
  1. class AccessPolicy 
  2. /** 
  3. * @var string 
  4. */ 
  5. private $_start; 
  6.  
  7. /** 
  8. * @var \DateTime 
  9. */ 
  10. private $_expiry; 
  11.  
  12. /** 
  13. * @var \DateTime 
  14. */ 
  15. private $_permission; 
  16.  
  17. /** 
  18. * Gets start. 
  19. * @return \DateTime. 
  20. */ 
  21. public function getStart() 
  22. return $this->_start; 
  23.  
  24. /** 
  25. * Sets start. 
  26. * @param \DateTime $start value. 
  27. * @return none. 
  28. */ 
  29. public function setStart($start) 
  30. Validate::isDate($start); 
  31. $this->_start = $start; 
  32.  
  33. /** 
  34. * Gets expiry. 
  35. * @return \DateTime. 
  36. */ 
  37. public function getExpiry() 
  38. return $this->_expiry; 
  39.  
  40. /** 
  41. * Sets expiry. 
  42. * @param \DateTime $expiry value. 
  43. * @return none. 
  44. */ 
  45. public function setExpiry($expiry) 
  46. Validate::isDate($expiry); 
  47. $this->_expiry = $expiry; 
  48.  
  49. /** 
  50. * Gets permission. 
  51. * @return string. 
  52. */ 
  53. public function getPermission() 
  54. return $this->_permission; 
  55.  
  56. /** 
  57. * Sets permission. 
  58. * @param string $permission value. 
  59. * @return none. 
  60. */ 
  61. public function setPermission($permission) 
  62. $this->_permission = $permission; 
  63.  
  64. /** 
  65. * Converts this current object to XML representation. 
  66. * @return array. 
  67. */ 
  68. public function toArray() 
  69. $array = array(); 
  70.  
  71. $array['Start'] = Utilities::convertToEdmDateTime($this->_start); 
  72. $array['Expiry'] = Utilities::convertToEdmDateTime($this->_expiry); 
  73. $array['Permission'] = $this->_permission; 
  74.  
  75. return $array;