src/Entity/Pay.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PayRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassPayRepository::class)]
  7. class Pay
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::DECIMALprecision10scale2)]
  14.     private ?string $amount null;
  15.     #[ORM\Column(type'date'nullabletrue)]
  16.     private $dateOfPayment;
  17.     #[ORM\Column]
  18.     private ?bool $status null;
  19.     #[ORM\ManyToOne(inversedBy'pays')]
  20.     private ?Entreprise $marchand null;
  21.     #[ORM\Column(length50nullabletrue)]
  22.     private ?string $cashIn null;
  23.     #[ORM\Column(length50nullabletrue)]
  24.     private ?string $code null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?bool $notif null;
  27.     #[ORM\ManyToOne(cascade: ['all'], fetch'EAGER'inversedBy'pays')]
  28.     private ?Payment $payment null;
  29.     #[ORM\ManyToOne(inversedBy'pays')]
  30.     private ?PaymentMode $paymentmode null;
  31.     #[ORM\Column(length25nullabletrue)]
  32.     private ?string $currency null;
  33.     #[ORM\Column(length50nullabletrue)]
  34.     private ?string $month null;
  35.     #[ORM\Column(length50nullabletrue)]
  36.     private ?string $year null;
  37.     #[ORM\Column(length100nullabletrue)]
  38.     private ?string $depositor null;
  39.     #[ORM\Column(length50nullabletrue)]
  40.     private ?string $mode null;
  41.     /**
  42.      * @return int|null
  43.      */
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     /**
  49.      * @param int|null $id
  50.      */
  51.     public function setId(?int $id): void
  52.     {
  53.         $this->id $id;
  54.     }
  55.     /**
  56.      * @return string|null
  57.      */
  58.     public function getAmount(): ?string
  59.     {
  60.         return $this->amount;
  61.     }
  62.     /**
  63.      * @param string|null $amount
  64.      */
  65.     public function setAmount(?string $amount): void
  66.     {
  67.         $this->amount $amount;
  68.     }
  69.     /**
  70.      * @return mixed
  71.      */
  72.     public function getDateOfPayment()
  73.     {
  74.         return $this->dateOfPayment;
  75.     }
  76.     /**
  77.      * @param mixed $dateOfPayment
  78.      */
  79.     public function setDateOfPayment($dateOfPayment): void
  80.     {
  81.         $this->dateOfPayment $dateOfPayment;
  82.     }
  83.     /**
  84.      * @return bool|null
  85.      */
  86.     public function getStatus(): ?bool
  87.     {
  88.         return $this->status;
  89.     }
  90.     /**
  91.      * @param bool|null $status
  92.      */
  93.     public function setStatus(?bool $status): void
  94.     {
  95.         $this->status $status;
  96.     }
  97.     /**
  98.      * @return Entreprise|null
  99.      */
  100.     public function getMarchand(): ?Entreprise
  101.     {
  102.         return $this->marchand;
  103.     }
  104.     /**
  105.      * @param Entreprise|null $marchand
  106.      */
  107.     public function setMarchand(?Entreprise $marchand): void
  108.     {
  109.         $this->marchand $marchand;
  110.     }
  111.     public function getCashIn(): ?string
  112.     {
  113.         return $this->cashIn;
  114.     }
  115.     public function setCashIn(?string $cashIn): static
  116.     {
  117.         $this->cashIn $cashIn;
  118.         return $this;
  119.     }
  120.     public function getCode(): ?string
  121.     {
  122.         return $this->code;
  123.     }
  124.     public function setCode(?string $code): static
  125.     {
  126.         $this->code $code;
  127.         return $this;
  128.     }
  129.     public function isNotif(): ?bool
  130.     {
  131.         return $this->notif;
  132.     }
  133.     public function setNotif(?bool $notif): static
  134.     {
  135.         $this->notif $notif;
  136.         return $this;
  137.     }
  138.     public function getPayment(): ?Payment
  139.     {
  140.         return $this->payment;
  141.     }
  142.     public function setPayment(?Payment $payment): static
  143.     {
  144.         $this->payment $payment;
  145.         return $this;
  146.     }
  147.     public function getPaymentmode(): ?PaymentMode
  148.     {
  149.         return $this->paymentmode;
  150.     }
  151.     public function setPaymentmode(?PaymentMode $paymentmode): static
  152.     {
  153.         $this->paymentmode $paymentmode;
  154.         return $this;
  155.     }
  156.     public function getCurrency(): ?string
  157.     {
  158.         return $this->currency;
  159.     }
  160.     public function setCurrency(?string $currency): static
  161.     {
  162.         $this->currency $currency;
  163.         return $this;
  164.     }
  165.     public function getMonth(): ?string
  166.     {
  167.         return $this->month;
  168.     }
  169.     public function setMonth(?string $month): static
  170.     {
  171.         $this->month $month;
  172.         return $this;
  173.     }
  174.     public function getYear(): ?string
  175.     {
  176.         return $this->year;
  177.     }
  178.     public function setYear(?string $year): static
  179.     {
  180.         $this->year $year;
  181.         return $this;
  182.     }
  183.     public function getDepositor(): ?string
  184.     {
  185.         return $this->depositor;
  186.     }
  187.     public function setDepositor(?string $depositor): static
  188.     {
  189.         $this->depositor $depositor;
  190.         return $this;
  191.     }
  192.     public function getMode(): ?string
  193.     {
  194.         return $this->mode;
  195.     }
  196.     public function setMode(?string $mode): static
  197.     {
  198.         $this->mode $mode;
  199.         return $this;
  200.     }
  201. }