<?php

namespace Planaday\Database\MySQL\QueryBuilding\SQLOperators;

use Planaday\Database\Abstraction\SQLQuery\QueryBuilding\SQLOperators\SQLNot;
use Planaday\Database\Abstraction\SQLQuery\QueryBuilding\SQLUseInterfaces\SQLCondition;

class MySQLNot implements SQLNot {
	public function __construct(
		protected SQLCondition $condition
	) {}

	function toConditionQuery(): string {
		return 'NOT (' . $this->condition->toConditionQuery() . ')';
	}
}