2020-04-02 00:02:51 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Driver\SQL\Condition;
|
|
|
|
|
|
|
|
class CondOr extends Condition {
|
|
|
|
|
2020-04-03 17:39:58 +02:00
|
|
|
private array $conditions;
|
2020-04-02 00:02:51 +02:00
|
|
|
|
|
|
|
public function __construct(...$conditions) {
|
2020-04-04 01:15:59 +02:00
|
|
|
$this->conditions = (!empty($conditions) && is_array($conditions[0])) ? $conditions[0] : $conditions;
|
2020-04-02 00:02:51 +02:00
|
|
|
}
|
|
|
|
|
2021-04-02 21:58:06 +02:00
|
|
|
public function getConditions(): array { return $this->conditions; }
|
2020-04-03 17:39:58 +02:00
|
|
|
}
|