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