src/Entity/CarSaleBankCheck.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CarSaleBankCheckRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CarSaleBankCheckRepository::class)
  7.  */
  8. class CarSaleBankCheck
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $amount;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $detail;
  24.     /* *
  25.      * @ORM\Column(type="datetime")
  26.      * /
  27.     private $createdAt;
  28.     /* *
  29.      * @ORM\Column(type="datetime", nullable=true)
  30.      * /
  31.     private $UpdatedAt;*/
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity=CarSale::class, inversedBy="bankCheckId")
  34.      * @ORM\JoinColumn(nullable=false)
  35.      */
  36.     private $carSale;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getAmount(): ?int
  42.     {
  43.         return $this->amount;
  44.     }
  45.     public function setAmount($amount): self
  46.     {
  47.         $this->amount str_replace('.'''$amount);
  48.         return $this;
  49.     }
  50.     public function getDetail(): ?string
  51.     {
  52.         return $this->detail;
  53.     }
  54.     public function setDetail(?string $detail): self
  55.     {
  56.         $this->detail $detail;
  57.         return $this;
  58.     }
  59.     /*public function getCreatedAt(): ?\DateTimeInterface
  60.     {
  61.         return $this->createdAt;
  62.     }
  63.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  64.     {
  65.         $this->createdAt = $createdAt;
  66.         return $this;
  67.     }
  68.     public function getUpdatedAt(): ?\DateTimeInterface
  69.     {
  70.         return $this->UpdatedAt;
  71.     }
  72.     public function setUpdatedAt(?\DateTimeInterface $UpdatedAt): self
  73.     {
  74.         $this->UpdatedAt = $UpdatedAt;
  75.         return $this;
  76.     }*/
  77.     public function getCarSale(): ?CarSale
  78.     {
  79.         return $this->carSale;
  80.     }
  81.     public function setCarSale(?CarSale $carSale): self
  82.     {
  83.         $this->carSale $carSale;
  84.         return $this;
  85.     }
  86. }