Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

676 B
Raw Blame
<?php

declare(strict_types=1);

namespace HiEvents\Enterprise\Licensing\DTO;

use Carbon\CarbonImmutable;
use HiEvents\DataTransferObjects\BaseDataObject;
use HiEvents\Enterprise\Licensing\LicenceStatus;
use HiEvents\Enterprise\Licensing\LicensedFeature;

class LicenceStateDTO extends BaseDataObject
{
    /**
     * @param  LicensedFeature[]  $features
     */
    public function __construct(
        public readonly LicenceStatus $status,
        public readonly array $features,
        public readonly ?LicencePayloadDTO $licence = null,
        public readonly ?CarbonImmutable $grace_ends_at = null,
        public readonly ?string $invalid_reason = null,
    ) {}
}