web-base/core/Driver/SQL/Column/Column.class.php

21 lines
492 B
PHP
Raw Normal View History

2020-04-02 00:02:51 +02:00
<?php
namespace Driver\SQL\Column;
class Column {
2020-04-03 17:39:58 +02:00
private string $name;
private bool $nullable;
2020-04-02 00:02:51 +02:00
private $defaultValue;
public function __construct($name, $nullable = false, $defaultValue = NULL) {
$this->name = $name;
$this->nullable = $nullable;
$this->defaultValue = $defaultValue;
}
public function getName() { return $this->name; }
public function notNull() { return !$this->nullable; }
public function getDefaultValue() { return $this->defaultValue; }
2020-04-03 17:39:58 +02:00
}