<?php

namespace IQDEV\ElasticSearch\Document\Property;

class Property
{
    public function __construct(
        protected string $key,
        protected PropertyType $type = PropertyType::BASE,
    ) {
    }

    public function getKey(): string
    {
        return $this->key;
    }

    public function getType(): PropertyType
    {
        return $this->type;
    }
}