web-base/core/Driver/SQL/Condition/CondOr.class.php

14 lines
328 B
PHP

<?php
namespace Driver\SQL\Condition;
class CondOr extends Condition {
private array $conditions;
public function __construct(...$conditions) {
$this->conditions = (!empty($conditions) && is_array($conditions[0])) ? $conditions[0] : $conditions;
}
public function getConditions() { return $this->conditions; }
}