Cookie.php in Zircon Profile 8
File
vendor/jcalderonzumba/gastonjs/src/Cookie.php
View source
<?php
namespace Zumba\GastonJS;
class Cookie {
protected $attributes;
public function __construct($attributes) {
$this->attributes = $attributes;
}
public function getName() {
return $this->attributes['name'];
}
public function getValue() {
return urldecode($this->attributes['value']);
}
public function getDomain() {
return $this->attributes['domain'];
}
public function getPath() {
return $this->attributes['path'];
}
public function isSecure() {
return isset($this->attributes['secure']);
}
public function isHttpOnly() {
return isset($this->attributes['httponly']);
}
public function getExpirationTime() {
if (isset($this->attributes['expiry'])) {
return $this->attributes['expiry'];
}
return null;
}
}
Classes
Name |
Description |
Cookie |
Class Cookie
@package Zumba\GastonJS |