|
| 1 | +<?php |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | + |
| 5 | +namespace App\Entity\Embed; |
| 6 | + |
| 7 | +use Doctrine\DBAL\Types\Types; |
| 8 | +use Doctrine\ORM\Mapping as ORM; |
| 9 | + |
| 10 | +#[ORM\Embeddable] |
| 11 | +class Options |
| 12 | +{ |
| 13 | + #[ORM\Column(type: Types::BOOLEAN)] |
| 14 | + private bool $resetAutoIncrement = false; |
| 15 | + |
| 16 | + #[ORM\Column(type: Types::BOOLEAN)] |
| 17 | + private bool $addDropDatabase = false; |
| 18 | + |
| 19 | + #[ORM\Column(type: Types::BOOLEAN)] |
| 20 | + private bool $addDropTable = false; |
| 21 | + |
| 22 | + #[ORM\Column(type: Types::BOOLEAN)] |
| 23 | + private bool $addDropTrigger = true; |
| 24 | + |
| 25 | + #[ORM\Column(type: Types::BOOLEAN)] |
| 26 | + private bool $addLocks = true; |
| 27 | + |
| 28 | + #[ORM\Column(type: Types::BOOLEAN)] |
| 29 | + private bool $completeInsert = false; |
| 30 | + |
| 31 | + public function isResetAutoIncrement(): bool |
| 32 | + { |
| 33 | + return $this->resetAutoIncrement; |
| 34 | + } |
| 35 | + |
| 36 | + public function setResetAutoIncrement(bool $resetAutoIncrement): self |
| 37 | + { |
| 38 | + $this->resetAutoIncrement = $resetAutoIncrement; |
| 39 | + |
| 40 | + return $this; |
| 41 | + } |
| 42 | + |
| 43 | + public function isAddDropDatabase(): bool |
| 44 | + { |
| 45 | + return $this->addDropDatabase; |
| 46 | + } |
| 47 | + |
| 48 | + public function setAddDropDatabase(bool $addDropDatabase): self |
| 49 | + { |
| 50 | + $this->addDropDatabase = $addDropDatabase; |
| 51 | + |
| 52 | + return $this; |
| 53 | + } |
| 54 | + |
| 55 | + public function isAddDropTable(): bool |
| 56 | + { |
| 57 | + return $this->addDropTable; |
| 58 | + } |
| 59 | + |
| 60 | + public function setAddDropTable(bool $addDropTable): self |
| 61 | + { |
| 62 | + $this->addDropTable = $addDropTable; |
| 63 | + |
| 64 | + return $this; |
| 65 | + } |
| 66 | + |
| 67 | + public function isAddDropTrigger(): bool |
| 68 | + { |
| 69 | + return $this->addDropTrigger; |
| 70 | + } |
| 71 | + |
| 72 | + public function setAddDropTrigger(bool $addDropTrigger): self |
| 73 | + { |
| 74 | + $this->addDropTrigger = $addDropTrigger; |
| 75 | + |
| 76 | + return $this; |
| 77 | + } |
| 78 | + |
| 79 | + public function isAddLocks(): bool |
| 80 | + { |
| 81 | + return $this->addLocks; |
| 82 | + } |
| 83 | + |
| 84 | + public function setAddLocks(bool $addLocks): self |
| 85 | + { |
| 86 | + $this->addLocks = $addLocks; |
| 87 | + |
| 88 | + return $this; |
| 89 | + } |
| 90 | + |
| 91 | + public function isCompleteInsert(): bool |
| 92 | + { |
| 93 | + return $this->completeInsert; |
| 94 | + } |
| 95 | + |
| 96 | + public function setCompleteInsert(bool $completeInsert): self |
| 97 | + { |
| 98 | + $this->completeInsert = $completeInsert; |
| 99 | + |
| 100 | + return $this; |
| 101 | + } |
| 102 | +} |
0 commit comments