2020-04-02 00:02:51 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Driver\SQL\Constraint;
|
|
|
|
|
|
|
|
abstract class Constraint {
|
|
|
|
|
2020-04-03 17:39:58 +02:00
|
|
|
private array $columnNames;
|
2020-04-02 00:02:51 +02:00
|
|
|
|
2020-04-03 17:39:58 +02:00
|
|
|
public function __construct($columnNames) {
|
|
|
|
$this->columnNames = (!is_array($columnNames) ? array($columnNames) : $columnNames);
|
2020-04-02 00:02:51 +02:00
|
|
|
}
|
|
|
|
|
2021-04-02 21:58:06 +02:00
|
|
|
public function getColumnNames(): array { return $this->columnNames; }
|
2020-04-03 17:39:58 +02:00
|
|
|
}
|