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.

28 wiersze
465B

  1. <?php
  2. namespace Framework\Database\Migration\Field;
  3. abstract class Field
  4. {
  5. public string $name;
  6. public bool $nullable = false;
  7. public bool $alter = false;
  8. public function __construct(string $name)
  9. {
  10. $this->name = $name;
  11. }
  12. public function nullable(): static
  13. {
  14. $this->nullable = true;
  15. return $this;
  16. }
  17. public function alter(): static
  18. {
  19. $this->alter = true;
  20. return $this;
  21. }
  22. }

Powered by TurnKey Linux.