command; } /** * Description of the command; 1-256 characters. * * @return string */ public function getDescription(): string { return $this->description; } /** * @inheritDoc */ public function toArray(): array { return [ 'command' => $this->command, 'description' => $this->description, ]; } /** * @inheritDoc */ public static function fromArray(?array $data): ?BotCommand { if($data === null) { return null; } $object = new self(); $object->command = $data['command'] ?? null; $object->description = $data['description'] ?? null; return $object; } }