mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-24 01:36:49 +00:00
Refactoring
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user