<?php

namespace App\DTO;

class ContractorDTO
{
    public function __construct(
        public int $user_id,
        public string $business_name,
        public string $business_type,
        public string $address,
        public string $province,
        public string $regency,
        public string $district,
        public string $village,
        public string $phone,
        public string $email,
        public ?string $short_name = null,
        public ?string $postal_code = null,
        public ?string $website = null
    ) {}

    public function toArray(): array
    {
        return get_object_vars($this);
    }
}