19 lines
371 B
PHP
19 lines
371 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Jinove\Vinoteca;
|
|
|
|
final class Consent
|
|
{
|
|
public const VERSION = "09.10.2026";
|
|
public const POLICY_VERSION = "22.10.2026";
|
|
|
|
public static function timestamp(string $version): int
|
|
{
|
|
$date = \DateTimeImmutable::createFromFormat("d.m.Y|", $version);
|
|
|
|
return $date ? $date->getTimestamp() : 0;
|
|
}
|
|
}
|