src/Entity/AppointmentResume.php line 19

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Ksante\CoreBundle\Entity\Channel;
  6. use Ksante\CoreBundle\Entity\Traits\TimestampableTrait;
  7. use Symfony\Component\Serializer\Annotation\Groups;
  8. /**
  9.  * @ORM\Entity()
  10.  *
  11.  * @ORM\Table(name="ksante_appointment_resume")
  12.  *
  13.  * @ORM\HasLifecycleCallbacks()
  14.  */
  15. class AppointmentResume
  16. {
  17.     use TimestampableTrait;
  18.     /**
  19.      * @ORM\Id
  20.      *
  21.      * @ORM\GeneratedValue
  22.      *
  23.      * @ORM\Column(type="integer")
  24.      *
  25.      * @Groups({"CustomerGroup"})
  26.      */
  27.     private $id;
  28.     /**
  29.      * @ORM\Column(type="string", nullable=false)
  30.      */
  31.     private string $resume '';
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity=Channel::class)
  34.      *
  35.      * @ORM\JoinColumn(nullable=false)
  36.      */
  37.     private ?Channel $channel;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=Customer::class, inversedBy="appointmentsResume")
  40.      *
  41.      * @ORM\JoinColumn(nullable=false)
  42.      */
  43.     private ?Customer $customer;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity=Diet::class, inversedBy="appointmentsResume")
  46.      *
  47.      * @ORM\JoinColumn(nullable=false)
  48.      */
  49.     private ?Diet $diet;
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getResume(): string
  55.     {
  56.         return $this->resume;
  57.     }
  58.     public function setResume(string $resume): self
  59.     {
  60.         $this->resume $resume;
  61.         return $this;
  62.     }
  63.     public function getChannel(): ?Channel
  64.     {
  65.         return $this->channel;
  66.     }
  67.     public function setChannel(?Channel $channel): self
  68.     {
  69.         $this->channel $channel;
  70.         return $this;
  71.     }
  72.     public function getCustomer(): ?Customer
  73.     {
  74.         return $this->customer;
  75.     }
  76.     public function setCustomer(?Customer $customer): self
  77.     {
  78.         $this->customer $customer;
  79.         return $this;
  80.     }
  81.     public function getDiet(): ?Diet
  82.     {
  83.         return $this->diet;
  84.     }
  85.     public function setDiet(?Diet $diet): self
  86.     {
  87.         $this->diet $diet;
  88.         return $this;
  89.     }
  90. }