Refactoring

This commit is contained in:
Alex
2025-07-11 20:33:26 +03:00
parent 2b8a19cd3e
commit 0c91886ff0
19 changed files with 377 additions and 110 deletions
-11
View File
@@ -18,15 +18,4 @@ final readonly class BotCommand extends AbstractModel
public ?string $description,
) {
}
/**
* @inheritdoc
*/
public static function fromArray(array $data): static
{
return new static(
(string)$data['name'],
$data['description'] ? (string)$data['description'] : null
);
}
}