A super easy PHP Framework for web development!
https://github.com/exacti/phacil-framework
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
834 B
49 lines
834 B
11 months ago
|
<?php
|
||
|
/**
|
||
|
* Copyright © 2024 ExacTI Technology Solutions. All rights reserved.
|
||
|
* GPLv3 General License.
|
||
|
* https://exacti.com.br
|
||
|
* Phacil PHP Framework - https://github.com/exacti/phacil-framework
|
||
|
*/
|
||
|
|
||
|
namespace Phacil\Framework\Cookies;
|
||
|
|
||
|
class SameSite {
|
||
|
|
||
|
const STRICT = 'Strict';
|
||
|
|
||
|
const LAX = 'Lax';
|
||
|
|
||
|
const NONE = 'None';
|
||
|
|
||
|
private $value = self::STRICT;
|
||
|
|
||
|
public function setStrict(){
|
||
|
$this->value = self::STRICT;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function setLax(){
|
||
|
$this->value = self::LAX;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function setNone(){
|
||
|
$this->value = self::NONE;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getValue() {
|
||
|
return $this->value;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @return $this
|
||
|
*/
|
||
|
static public function getInstance()
|
||
|
{
|
||
|
$class = get_called_class();
|
||
|
return \Phacil\Framework\Registry::getAutoInstance((new $class()));
|
||
|
}
|
||
|
}
|