2020-04-02 00:02:51 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Driver\SQL\Column;
|
|
|
|
|
|
|
|
class EnumColumn extends Column {
|
|
|
|
|
2020-04-03 17:39:58 +02:00
|
|
|
private array $values;
|
2020-04-02 00:02:51 +02:00
|
|
|
|
2021-04-02 21:58:06 +02:00
|
|
|
public function __construct(string $name, array $values, bool $nullable = false, $defaultValue = NULL) {
|
2020-04-02 00:02:51 +02:00
|
|
|
parent::__construct($name, $nullable, $defaultValue);
|
|
|
|
$this->values = $values;
|
|
|
|
}
|
|
|
|
|
2021-04-02 21:58:06 +02:00
|
|
|
public function getValues(): array { return $this->values; }
|
2020-04-02 00:02:51 +02:00
|
|
|
}
|