PageRenderTime 42ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/public/packages/ckeditor/plugins/ckfinder/core/connector/php/vendor/microsoft/azure-storage/src/Blob/Models/SetBlobPropertiesOptions.php

https://bitbucket.org/AndreFigueira93/siscon-laravel
PHP | 252 lines | 85 code | 22 blank | 145 comment | 0 complexity | ac45532e11dad7904421907588a0af39 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, MPL-2.0-no-copyleft-exception
  1. <?php
  2. /**
  3. * LICENSE: The MIT License (the "License")
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. * https://github.com/azure/azure-storage-php/LICENSE
  7. *
  8. * Unless required by applicable law or agreed to in writing, software
  9. * distributed under the License is distributed on an "AS IS" BASIS,
  10. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. * See the License for the specific language governing permissions and
  12. * limitations under the License.
  13. *
  14. * PHP version 5
  15. *
  16. * @category Microsoft
  17. * @package MicrosoftAzure\Storage\Blob\Models
  18. * @author Azure Storage PHP SDK <dmsh@microsoft.com>
  19. * @copyright 2016 Microsoft Corporation
  20. * @license https://github.com/azure/azure-storage-php/LICENSE
  21. * @link https://github.com/azure/azure-storage-php
  22. */
  23. namespace MicrosoftAzure\Storage\Blob\Models;
  24. /**
  25. * Optional parameters for setBlobProperties wrapper
  26. *
  27. * @category Microsoft
  28. * @package MicrosoftAzure\Storage\Blob\Models
  29. * @author Azure Storage PHP SDK <dmsh@microsoft.com>
  30. * @copyright 2016 Microsoft Corporation
  31. * @license https://github.com/azure/azure-storage-php/LICENSE
  32. * @link https://github.com/azure/azure-storage-php
  33. */
  34. class SetBlobPropertiesOptions extends BlobServiceOptions
  35. {
  36. private $_blobProperties;
  37. private $_sequenceNumberAction;
  38. /**
  39. * Creates a new SetBlobPropertiesOptions with a specified BlobProperties
  40. * instance.
  41. *
  42. * @param BlobProperties $blobProperties The blob properties instance.
  43. */
  44. public function __construct(BlobProperties $blobProperties = null)
  45. {
  46. parent::__construct();
  47. $this->_blobProperties = is_null($blobProperties)
  48. ? new BlobProperties() : clone $blobProperties;
  49. }
  50. /**
  51. * Gets blob sequenceNumber.
  52. *
  53. * @return integer
  54. */
  55. public function getSequenceNumber()
  56. {
  57. return $this->_blobProperties->getSequenceNumber();
  58. }
  59. /**
  60. * Sets blob sequenceNumber.
  61. *
  62. * @param integer $sequenceNumber value.
  63. *
  64. * @return void
  65. */
  66. public function setSequenceNumber($sequenceNumber)
  67. {
  68. $this->_blobProperties->setSequenceNumber($sequenceNumber);
  69. }
  70. /**
  71. * Gets lease Id for the blob
  72. *
  73. * @return string
  74. */
  75. public function getSequenceNumberAction()
  76. {
  77. return $this->_sequenceNumberAction;
  78. }
  79. /**
  80. * Sets lease Id for the blob
  81. *
  82. * @param string $sequenceNumberAction action.
  83. *
  84. * @return void
  85. */
  86. public function setSequenceNumberAction($sequenceNumberAction)
  87. {
  88. $this->_sequenceNumberAction = $sequenceNumberAction;
  89. }
  90. /**
  91. * Gets blob contentLength.
  92. *
  93. * @return integer
  94. */
  95. public function getContentLength()
  96. {
  97. return $this->_blobProperties->getContentLength();
  98. }
  99. /**
  100. * Sets blob contentLength.
  101. *
  102. * @param integer $contentLength value.
  103. *
  104. * @return void
  105. */
  106. public function setContentLength($contentLength)
  107. {
  108. $this->_blobProperties->setContentLength($contentLength);
  109. }
  110. /**
  111. * Gets ContentType.
  112. *
  113. * @return string
  114. */
  115. public function getContentType()
  116. {
  117. return $this->_blobProperties->getContentType();
  118. }
  119. /**
  120. * Sets ContentType.
  121. *
  122. * @param string $contentType value.
  123. *
  124. * @return void
  125. */
  126. public function setContentType($contentType)
  127. {
  128. $this->_blobProperties->setContentType($contentType);
  129. }
  130. /**
  131. * Gets ContentEncoding.
  132. *
  133. * @return string
  134. */
  135. public function getContentEncoding()
  136. {
  137. return $this->_blobProperties->getContentEncoding();
  138. }
  139. /**
  140. * Sets ContentEncoding.
  141. *
  142. * @param string $contentEncoding value.
  143. *
  144. * @return void
  145. */
  146. public function setContentEncoding($contentEncoding)
  147. {
  148. $this->_blobProperties->setContentEncoding($contentEncoding);
  149. }
  150. /**
  151. * Gets ContentLanguage.
  152. *
  153. * @return string
  154. */
  155. public function getContentLanguage()
  156. {
  157. return $this->_blobProperties->getContentLanguage();
  158. }
  159. /**
  160. * Sets ContentLanguage.
  161. *
  162. * @param string $contentLanguage value.
  163. *
  164. * @return void
  165. */
  166. public function setContentLanguage($contentLanguage)
  167. {
  168. $this->_blobProperties->setContentLanguage($contentLanguage);
  169. }
  170. /**
  171. * Gets ContentMD5.
  172. *
  173. * @return void
  174. */
  175. public function getContentMD5()
  176. {
  177. return $this->_blobProperties->getContentMD5();
  178. }
  179. /**
  180. * Sets blob ContentMD5.
  181. *
  182. * @param string $contentMD5 value.
  183. *
  184. * @return void
  185. */
  186. public function setContentMD5($contentMD5)
  187. {
  188. $this->_blobProperties->setContentMD5($contentMD5);
  189. }
  190. /**
  191. * Gets cache control.
  192. *
  193. * @return string
  194. */
  195. public function getCacheControl()
  196. {
  197. return $this->_blobProperties->getCacheControl();
  198. }
  199. /**
  200. * Sets cacheControl.
  201. *
  202. * @param string $cacheControl value to use.
  203. *
  204. * @return void
  205. */
  206. public function setCacheControl($cacheControl)
  207. {
  208. $this->_blobProperties->setCacheControl($cacheControl);
  209. }
  210. /**
  211. * Gets content disposition.
  212. *
  213. * @return string
  214. */
  215. public function getContentDisposition()
  216. {
  217. return $this->_blobProperties->getContentDisposition();
  218. }
  219. /**
  220. * Sets contentDisposition.
  221. *
  222. * @param string $contentDisposition value to use.
  223. *
  224. * @return void
  225. */
  226. public function setContentDisposition($contentDisposition)
  227. {
  228. $this->_blobProperties->setContentDisposition($contentDisposition);
  229. }
  230. }