first commit

This commit is contained in:
Alex
2025-07-06 18:52:32 +03:00
commit bcd8a52d06
27 changed files with 1126 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace BushlanovDev\MaxMessengerBot\Models;
abstract readonly class AbstractModel
{
/**
* @param array<string, mixed> $data
*/
abstract public static function fromArray(array $data): static;
/**
* @return array<string, mixed>
*/
public function toArray(): array
{
return get_object_vars($this);
}
}