WIP: разгрузка User:class от сторонних методов.

This commit is contained in:
2023-04-18 12:21:54 +03:00
parent 2bc67ce543
commit 02c76e76ad
15 changed files with 548 additions and 4100 deletions

View File

@@ -0,0 +1,26 @@
<?php
class Status
{
private static array $messages = [];
public static function set(string $message)
{
self::$messages[] = $message;
}
public static function get(): string
{
return implode('<br>', self::$messages);
}
public static function print()
{
echo self::get();
}
public static function exists(): bool
{
return !empty(self::$messages);
}
}