<?php

namespace App\Services\PlanDigitizer;

/** A single piece of text read from the plan, with the point it is anchored to. */
class PlanLabel
{
    public const KIND_LOT = 'lot';

    public const KIND_BLOCK = 'block';

    public const KIND_AREA = 'area';

    public const KIND_DIMENSION = 'dimension';

    public const KIND_OTHER = 'other';

    public function __construct(
        public readonly string $kind,
        public readonly string $raw,
        public readonly string $normalized,
        public readonly float $x,
        public readonly float $y,
        public readonly ?float $value = null,
        public readonly ?int $number = null,
        public readonly string $source = 'shx',
    ) {}
}
