Skip to content
Snippets Groups Projects
Search.php 453 B
Newer Older
<?php

declare(strict_types=1);

Nikita Chernykh's avatar
Nikita Chernykh committed
namespace IQDEV\ElasticSearch\Criteria\Search;

use IQDEV\ElasticSearch\Document\Property\Property;

class Search
{
    public function __construct(
        private readonly Property $property,
        private readonly string $value,
    ) {
    }

    public function getProperty(): Property
    {
        return $this->property;
    }

    public function getValue(): string
    {
        return $this->value;
    }
}