<?php

namespace App\Models;

class ProtectedUrl {
    public ?int $id = null;
    public string $token;
    public int $resource_id;
    public string $created_at;

    public function __construct(array $data = [])
    {
        $this->id = $data['id'] ?? null;
        $this->token = $data['token'] ?? '';
        $this->resource_id = $data['resource_id'] ?? 0;
        $this->created_at = $data['created_at'] ?? '';
    }
}