<?php
namespace Claromentis\Search;

$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"] ?: array()) + array("_680cc2b8220e94c8" . "c32b8bc7c65519b4" => base64_decode("aXNf" . "aW50"), "_8ade8d758705e3ab55c8100e6" . "ea320d7" => base64_decode("KCkgbXVzdCBiZSBhIG5vbi1lbXB0eSBhcnJheSBvZiBzdHJpb" . "mdzIG9yIGludGVnZXJzLCBlbXB0eSBhcnJheSBwcm92aWRlZA" . "=="), "_ea7a040ae8d837" . "97a9d185188ff86" . "4a2" => base64_decode("QXJndW1lbnQgMSBwYXNzZW" . "QgdG8g"), "_da3cd6b11" . "b4ba425130" . "992f549836" . "b7f" => base64_decode("KCkgbXVzdCBiZSBhbiBhcnJheSBvZiBzdHJpbmd" . "zIG9yIGludGVnZXJzLCBvZmZzZXQg"), "_5c535722540e1ef86eeede2274ec" . "9cd4" => base64_decode("O" . "j" . "o" . "="), "_5e30c4717ced36cf" . "f9e93e19a5c576cc" => base64_decode("aXNfc3R" . "yaW5n"), "_27d36ba68a8521796349" . "7e66d46a8f86" => base64_decode("Z2V0" . "dHlw" . "ZQ=="), "_679665a8d413f3af1393462bc4d" . "2894f" => base64_decode("IGlzIA=" . "="));
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["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_ea7a040ae8d83797a9d185188ff" . "864a2"] . self::class . $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_5c535722540e1ef86eeede2" . "274ec9cd4"] . __FUNCTION__ . $GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_8ade8d758705e3ab55c8100e6ea32" . "0d7"]);
        }
        foreach ($values as $_1f50e30be8c2fefa6881834e71d504a2 => $value) {
            if (!$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_680cc2b8220e94c8c3" . "2b8bc7c65519b4"]($value) && !$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_5e30c4717ced36cff9e93e19a5c5" . "76cc"]($value)) {
                throw new TypeError($GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_ea7a040ae8d83797a" . "9d185188ff864a2"] . self::class . $GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_5c535722540e1ef86eeede2274e" . "c9cd4"] . __FUNCTION__ . ($GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_da3cd6b11b4ba425130992f" . "549836b7f"] . $_1f50e30be8c2fefa6881834e71d504a2 . $GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_679665a8d413f3af1393462b" . "c4d2894f"]) . $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_27d36ba68a85217963497e" . "66d46a8f86"]($value));
            }
        }
        $this->values = $values;
    }
}