src/Admin/Modules/AmountVoucherSettings/Entity/AmountVoucherSettingsAmount.php line 12

  1. <?php
  2. namespace App\Admin\Modules\AmountVoucherSettings\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table(name="amount_voucher_settings_amount", indexes={@ORM\Index(columns={"amount"})})
  7.  * @ORM\Entity
  8.  */
  9. class AmountVoucherSettingsAmount
  10. {
  11.     /**
  12.      * @var int
  13.      *
  14.      * @ORM\Column(type="bigint", options={"unsigned"=true}))
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      */
  18.     protected $id;
  19.     /**
  20.      * @var \App\Admin\Modules\AmountVoucherSettings\Entity\AmountVoucherSettings
  21.      *
  22.      * @ORM\ManyToOne(targetEntity="App\Admin\Modules\AmountVoucherSettings\Entity\AmountVoucherSettings", inversedBy="amounts")
  23.      * @ORM\JoinColumns({
  24.      *   @ORM\JoinColumn(name="id_amount_voucher_settings", referencedColumnName="id", nullable=false, onDelete="CASCADE")
  25.      * })
  26.      */
  27.     private $settings;
  28.     
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(name="amount", type="decimal", precision=14, scale=2, nullable=false)
  33.      */
  34.     private $amount;
  35.     public function getId(): ?string
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getAmount(): ?string
  40.     {
  41.         return $this->amount;
  42.     }
  43.     public function setAmount(string $amount): self
  44.     {
  45.         $this->amount $amount;
  46.         return $this;
  47.     }
  48.     public function getSettings(): ?AmountVoucherSettings
  49.     {
  50.         return $this->settings;
  51.     }
  52.     public function setSettings(?AmountVoucherSettings $settings): self
  53.     {
  54.         $this->settings $settings;
  55.         return $this;
  56.     }
  57. }