PageRenderTime 34ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/vendor/magento/framework/Session/Config/ConfigInterface.php

https://gitlab.com/yousafsyed/easternglamor
PHP | 173 lines | 26 code | 21 blank | 126 comment | 0 complexity | a90612fa1bb5e9256ce9faf613458176 MD5 | raw file
  1. <?php
  2. /**
  3. * Session config interface
  4. *
  5. * Copyright © 2016 Magento. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Framework\Session\Config;
  9. interface ConfigInterface
  10. {
  11. /**
  12. * Set array of options
  13. *
  14. * @param array $options
  15. * @return $this
  16. */
  17. public function setOptions($options);
  18. /**
  19. * Get all options set
  20. *
  21. * @return array
  22. */
  23. public function getOptions();
  24. /**
  25. * Set an individual option
  26. *
  27. * @param string $option
  28. * @param mixed $value
  29. * @return $this
  30. */
  31. public function setOption($option, $value);
  32. /**
  33. * Get an individual option
  34. *
  35. * @param string $option
  36. * @return mixed
  37. */
  38. public function getOption($option);
  39. /**
  40. * Convert config to array
  41. *
  42. * @return array
  43. */
  44. public function toArray();
  45. /**
  46. * Set session.name
  47. *
  48. * @param string $name
  49. * @return $this
  50. */
  51. public function setName($name);
  52. /**
  53. * Get session.name
  54. *
  55. * @return string
  56. */
  57. public function getName();
  58. /**
  59. * Set session.save_path
  60. *
  61. * @param string $savePath
  62. * @return $this
  63. */
  64. public function setSavePath($savePath);
  65. /**
  66. * Set session.save_path
  67. *
  68. * @return string
  69. */
  70. public function getSavePath();
  71. /**
  72. * Set session.cookie_lifetime
  73. *
  74. * @param int $cookieLifetime
  75. * @return $this
  76. */
  77. public function setCookieLifetime($cookieLifetime);
  78. /**
  79. * Get session.cookie_lifetime
  80. *
  81. * @return int
  82. */
  83. public function getCookieLifetime();
  84. /**
  85. * Set session.cookie_path
  86. *
  87. * @param string $cookiePath
  88. * @return $this
  89. */
  90. public function setCookiePath($cookiePath);
  91. /**
  92. * Get session.cookie_path
  93. *
  94. * @return string
  95. */
  96. public function getCookiePath();
  97. /**
  98. * Set session.cookie_domain
  99. *
  100. * @param string $cookieDomain
  101. * @return $this
  102. */
  103. public function setCookieDomain($cookieDomain);
  104. /**
  105. * Get session.cookie_domain
  106. *
  107. * @return string
  108. */
  109. public function getCookieDomain();
  110. /**
  111. * Set session.cookie_secure
  112. *
  113. * @param bool $cookieSecure
  114. * @return $this
  115. */
  116. public function setCookieSecure($cookieSecure);
  117. /**
  118. * Get session.cookie_secure
  119. *
  120. * @return bool
  121. * @SuppressWarnings(PHPMD.BooleanGetMethodName)
  122. */
  123. public function getCookieSecure();
  124. /**
  125. * Set session.cookie_httponly
  126. *
  127. * @param bool $cookieHttpOnly
  128. * @return $this
  129. */
  130. public function setCookieHttpOnly($cookieHttpOnly);
  131. /**
  132. * Get session.cookie_httponly
  133. *
  134. * @return bool
  135. * @SuppressWarnings(PHPMD.BooleanGetMethodName)
  136. */
  137. public function getCookieHttpOnly();
  138. /**
  139. * Set session.use_cookies
  140. *
  141. * @param bool $useCookies
  142. * @return $this
  143. */
  144. public function setUseCookies($useCookies);
  145. /**
  146. * Get session.use_cookies
  147. *
  148. * @return bool
  149. * @SuppressWarnings(PHPMD.BooleanGetMethodName)
  150. */
  151. public function getUseCookies();
  152. }