Namespace and ClassPath rewrites
This commit is contained in:
18
Core/Driver/SQL/Constraint/Constraint.class.php
Normal file
18
Core/Driver/SQL/Constraint/Constraint.class.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Core\Driver\SQL\Constraint;
|
||||
|
||||
abstract class Constraint {
|
||||
|
||||
private array $columnNames;
|
||||
private ?string $name;
|
||||
|
||||
public function __construct($columnNames, ?string $constraintName = NULL) {
|
||||
$this->columnNames = (!is_array($columnNames) ? array($columnNames) : $columnNames);
|
||||
$this->name = $constraintName;
|
||||
}
|
||||
|
||||
public function getColumnNames(): array { return $this->columnNames; }
|
||||
public function getName(): ?string { return $this->name; }
|
||||
public function setName(string $name) { $this->name = $name; }
|
||||
}
|
||||
Reference in New Issue
Block a user