Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- <?php
-
- namespace Framework\Database\Migration\Field;
-
- abstract class Field
- {
- public string $name;
- public bool $nullable = false;
- public bool $alter = false;
-
- public function __construct(string $name)
- {
- $this->name = $name;
- }
-
- public function nullable(): static
- {
- $this->nullable = true;
- return $this;
- }
-
- public function alter(): static
- {
- $this->alter = true;
- return $this;
- }
- }
|