Lines Matching refs:value
21 * @param string $value The cookie value; may not be null.
23 public function __construct($name, $value)
26 $this->validateCookieValue($value);
29 $this->cookie['value'] = $value;
33 * @param array $cookieArray The cookie fields; must contain name and value.
41 if (!isset($cookieArray['value'])) {
42 throw new InvalidArgumentException('Cookie value should be set');
44 $cookie = new self($cookieArray['name'], $cookieArray['value']);
81 return $this->offsetGet('value');
179 * The cookie's same-site value.
203 // Passing a boolean value for the "secure" flag is mandatory when using geckodriver
232 * @param mixed $value
236 public function offsetSet($offset, $value)
238 if ($value === null) {
241 $this->cookie[$offset] = $value;
270 * @param string $value
272 protected function validateCookieValue($value)
274 if ($value === null) {
275 throw new InvalidArgumentException('Cookie value is required when setting a cookie');