Du kannst nicht mehr als 25 Themen auswählen
Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
|
- <?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;
- }
- }
|