<?php
namespace Claromentis\Search;

$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"] ?: array()) + array("_679665a8d4" . "13f3af13934" . "62bc4d2894f" => base64_decode("IGlzI" . "A=="), "_27d36ba68a85217963497e66d46a8f" . "86" => base64_decode("Z2V0dHlwZ" . "Q=="), "_8ade8d758705e3ab55c8100e6ea320d" . "7" => base64_decode("KCkgbXVzdCBiZSBhIG5vbi1lbXB0eSBhcnJheSBvZiBzdHJpbmdzIG9yIGludGVnZXJzLCBlbXB0eSBhcnJheSBwcm9" . "2aWRlZA=="), "_5c535722540e" . "1ef86eeede227" . "4ec9cd4" => base64_decode("Oj" . "o="), "_da3cd6b11b" . "4ba42513099" . "2f549836b7f" => base64_decode("KCkgbXVzdCBiZSBhbiBhcnJheSBvZiBzdHJpbmdzIG9yIGludGVnZXJzLCBvZmZzZ" . "XQg"), "_5e30c4717ced36cf" . "f9e93e19a5c576cc" => base64_decode("aXNfc3RyaW" . "5n"), "_680cc2b8220e94c8c32b8bc7c6551" . "9b4" => base64_decode("aXN" . "faW" . "50"), "_ea7a040ae8d83797a9d1" . "85188ff864a2" => base64_decode("QXJndW1lbnQgMSB" . "wYXNzZWQgdG8g"));
use TypeError;






class Terms
{
    protected string $field;
    
    
    protected array $values = [];
    public function __construct(string $field, array $values)
    {
        $this->SetField($field);
        $this->SetValues($values);
    }
    
    
    
    
    
    
    public function GetValues() : array
    {
        return $this->values;
    }
    
    
    
    
    
    
    public function GetField() : string
    {
        return $this->field;
    }
    
    
    
    
    
    
    public function SetField(string $field) : void
    {
        $this->field = $field;
    }
    
    
    
    
    
    
    public function SetValues(array $values) : void
    {
        if (empty($values)) {
            throw new TypeError($GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_ea7a040ae8d83797a9d1" . "85188ff864a2"] . self::class . $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_5c535722540e1ef86ee" . "ede2274ec9cd4"] . __FUNCTION__ . $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_8ade8d75870" . "5e3ab55c8100" . "e6ea320d7"]);
        }
        foreach ($values as $_1f50e30be8c2fefa6881834e71d504a2 => $value) {
            if (!$GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_680cc2b8220e94c8c" . "32b8bc7c65519b4"]($value) && !$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_5e30c4717ced36c" . "ff9e93e19a5c576c" . "c"]($value)) {
                throw new TypeError($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_ea7a040ae8d83797a9d185188ff864a" . "2"] . self::class . $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_5c535722540e1ef86ee" . "ede2274ec9cd4"] . __FUNCTION__ . ($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_da3cd6b11b4ba425130992f549836b7" . "f"] . $_1f50e30be8c2fefa6881834e71d504a2 . $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_679665a8d413f" . "3af1393462bc4d" . "2894f"]) . $GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_27d36ba68a8521796" . "3497e66d46a8f86"]($value));
            }
        }
        $this->values = $values;
    }
}