21 declare(strict_types=1);
70 $this->canEmpty =
true;
73 }elseif(
$type{0} ===
"?"){
74 $this->nullable =
true;
83 case self::TYPE_STRING:
95 case self::TYPE_FLOAT:
100 $this->
default =
in_array($default, [
"true",
"on",
"1"],
true);
103 case self::TYPE_TIMESTAMP:
122 $clone = clone $this;
123 $clone->list =
false;
168 return $this->
default !== null;
172 if($this->name !== $that->name){
176 if($this->list !== $that->list){
180 if($this->canEmpty !== $that->canEmpty){
181 $diff =
"canBeEmpty";
184 if($this->type !== $that->type){
188 if($this->
default !== $that->default){
189 $diff =
"defaultValue";
__construct(string $name, string $type, ?string $default)
equals(GenericVariable $that, &$diff=null)