26 lines
783 B
PHP
26 lines
783 B
PHP
<?php
|
|
|
|
namespace App\Integrations\Whmcs\DTOs;
|
|
|
|
class ProductData
|
|
{
|
|
/** @param array<int, array{billing_cycle: string, price: float}> $pricings */
|
|
public function __construct(
|
|
public readonly int $legacyId,
|
|
public readonly ?int $categoryId,
|
|
public readonly string $name,
|
|
public readonly string $slug,
|
|
public readonly ?string $shortDescription,
|
|
public readonly ?string $description,
|
|
public readonly ?int $stock,
|
|
public readonly bool $isUnlimited,
|
|
public readonly float $setupFee,
|
|
public readonly bool $isActive,
|
|
public readonly int $sortOrder,
|
|
public readonly ?string $createdAt,
|
|
public readonly ?string $updatedAt,
|
|
public readonly array $pricings,
|
|
) {
|
|
}
|
|
}
|