Skip to content
Snippets Groups Projects
Search.php 451 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,
Pavel's avatar
Pavel committed
        private readonly mixed $value,
    ) {
    }

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

Pavel's avatar
Pavel committed
    public function getValue(): mixed
    {
        return $this->value;
    }
}