src/Entity/SupplierEducation.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SupplierEducationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=SupplierEducationRepository::class)
  8.  */
  9. class SupplierEducation
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      * @Groups({
  16.      *     "supplier_education@core"
  17.      * })
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Suppliers::class, inversedBy="supplier_educations")
  22.      * @ORM\JoinColumn(nullable=false)
  23.      */
  24.     private $supplier;
  25.     /**
  26.      * @ORM\Column(type="text")
  27.      * @Groups({
  28.      *     "supplier_education@core"
  29.      * })
  30.      */
  31.     private $prompt;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getSupplier(): ?Suppliers
  37.     {
  38.         return $this->supplier;
  39.     }
  40.     public function setSupplier(?Suppliers $supplier): self
  41.     {
  42.         $this->supplier $supplier;
  43.         return $this;
  44.     }
  45.     public function getPrompt(): ?string
  46.     {
  47.         return $this->prompt;
  48.     }
  49.     public function setPrompt(string $prompt): self
  50.     {
  51.         $this->prompt $prompt;
  52.         return $this;
  53.     }
  54. }