Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

28 řádky
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.