web-base/Core/Driver/SQL/Column/StringColumn.class.php

15 lines
378 B
PHP
Raw Normal View History

2020-04-02 00:02:51 +02:00
<?php
2022-11-18 18:06:46 +01:00
namespace Core\Driver\SQL\Column;
2020-04-02 00:02:51 +02:00
class StringColumn extends Column {
2020-04-03 17:39:58 +02:00
private ?int $maxSize;
2020-04-02 00:02:51 +02:00
2021-04-02 21:58:06 +02:00
public function __construct(string $name, ?int $maxSize = null, bool $nullable = false, $defaultValue = null) {
2020-04-02 00:02:51 +02:00
parent::__construct($name, $nullable, $defaultValue);
$this->maxSize = $maxSize;
}
2021-04-02 21:58:06 +02:00
public function getMaxSize(): ?int { return $this->maxSize; }
2020-04-03 17:39:58 +02:00
}