<?php
/**
 * @since     Apr 2023
 * @author    Haydar KULEKCI <haydarkulekci@gmail.com>
 */

namespace Qdrant\Models\Filter\Condition;

class MatchBool extends AbstractCondition implements ConditionInterface
{

	protected bool $value;
    public function __construct(string $key, bool $value)
    {
        parent::__construct($key);
		$this->value = $value;
    }

    public function toArray(): array
    {
        return [
            'key' => $this->key,
            'match' => [
                'value' => $this->value
            ]
        ];
    }
}