25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
421B

  1. <?php
  2. namespace Framework\Database\Migration\Field;
  3. use Framework\Database\Exception\MigrationException;
  4. class TextField extends Field
  5. {
  6. public ?string $default = null;
  7. public function nullable(): static
  8. {
  9. throw new MigrationException('Text fields cannot be nullable');
  10. }
  11. public function default(string $value): static
  12. {
  13. $this->default = $value;
  14. return $this;
  15. }
  16. }

Powered by TurnKey Linux.