web-base/Core/Driver/SQL/Condition/Exists.class.php

22 lines
333 B
PHP
Raw Normal View History

2021-11-11 14:25:26 +01:00
<?php
2022-11-18 18:06:46 +01:00
namespace Core\Driver\SQL\Condition;
2021-11-11 14:25:26 +01:00
2022-11-18 18:06:46 +01:00
use Core\Driver\SQL\Query\Select;
2021-11-11 14:25:26 +01:00
class Exists extends Condition
{
private Select $subQuery;
public function __construct(Select $subQuery)
{
$this->subQuery = $subQuery;
}
public function getSubQuery(): Select
{
return $this->subQuery;
}
}