public function __construct($columnName, $defaultValue, $enumValues) { if ($defaultValue === null || !in_array($defaultValue, $enumValues)) { throw new \Rhubarb\Stem\Exceptions\SchemaException("The enum column does not have a default matching one of the enum values."); } parent::__construct($columnName, $defaultValue); $this->enumValues = $enumValues; }
public function __construct($columnName) { parent::__construct($columnName, $this->getNewContainerObject()); }