web-base/core/Driver/SQL/Condition/CondOr.class.php
2021-04-02 22:24:22 +02:00

14 lines
335 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(): array { return $this->conditions; }
}