src/Entity/ProjectOwnerContactPersons.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectOwnerContactPersonsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ProjectOwnerContactPersonsRepository::class)
  8.  */
  9. class ProjectOwnerContactPersons
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      * @Groups({
  16.      *        "project.details.orders",
  17.      *        "order.detail",
  18.      *
  19.      *        "project.details",
  20.      *        "contact.person.base"
  21.      *   })
  22.      */
  23.     private $id;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=ProjectOwner::class, inversedBy="projectOwnerContactPersons")
  26.      * @ORM\JoinColumn(nullable=false)
  27.      */
  28.     private $project_owner;
  29.     /**
  30.      * @ORM\Column(type="string", length=64, nullable=true)
  31.      * @Groups({
  32.      *        "project.details.orders",
  33.      *        "order.detail",
  34.      *
  35.      *        "project.details",
  36.      *     "contact.person.base"
  37.      *   })
  38.      */
  39.     private $name;
  40.     /**
  41.      * @ORM\Column(type="string", length=64, nullable=true)
  42.      * @Groups({
  43.      *        "project.details.orders",
  44.      *        "order.detail",
  45.      *
  46.      *        "project.details",
  47.      *     "contact.person.base"
  48.      *   })
  49.      */
  50.     private $surname;
  51.     /**
  52.      * @ORM\Column(type="string", length=64, nullable=true)
  53.      * @Groups({
  54.      *        "project.details.orders",
  55.      *        "order.detail",
  56.      *
  57.      *        "project.details",
  58.      *     "contact.person.base"
  59.      *   })
  60.      */
  61.     private $tel;
  62.     /**
  63.      * @ORM\Column(type="string", length=255, nullable=true)
  64.      * @Groups({
  65.      *        "project.details.orders",
  66.      *        "order.detail",
  67.      *
  68.      *        "project.details",
  69.      *     "contact.person.base"
  70.      *   })
  71.      */
  72.     private $email;
  73.     /**
  74.      * @ORM\ManyToOne(targetEntity=ContactPersonPositions::class, inversedBy="projectOwnerContactPersons")
  75.      * @ORM\JoinColumn(nullable=false)
  76.      * @Groups({
  77.      *        "project.details.orders",
  78.      *        "order.detail",
  79.      *
  80.      *        "project.details",
  81.      *     "contact.person.base"
  82.      *   })
  83.      */
  84.     private $position;
  85.     public function getId(): ?int
  86.     {
  87.         return $this->id;
  88.     }
  89.     public function getProjectOwner(): ?ProjectOwner
  90.     {
  91.         return $this->project_owner;
  92.     }
  93.     public function setProjectOwner(?ProjectOwner $project_owner): self
  94.     {
  95.         $this->project_owner $project_owner;
  96.         return $this;
  97.     }
  98.     public function getName(): ?string
  99.     {
  100.         return $this->name;
  101.     }
  102.     public function setName(?string $name): self
  103.     {
  104.         $this->name $name;
  105.         return $this;
  106.     }
  107.     public function getSurname(): ?string
  108.     {
  109.         return $this->surname;
  110.     }
  111.     public function setSurname(?string $surname): self
  112.     {
  113.         $this->surname $surname;
  114.         return $this;
  115.     }
  116.     public function getTel(): ?string
  117.     {
  118.         return $this->tel;
  119.     }
  120.     public function setTel(?string $tel): self
  121.     {
  122.         $this->tel $tel;
  123.         return $this;
  124.     }
  125.     public function getEmail(): ?string
  126.     {
  127.         return $this->email;
  128.     }
  129.     public function setEmail(?string $email): self
  130.     {
  131.         $this->email $email;
  132.         return $this;
  133.     }
  134.     public function getPosition(): ?ContactPersonPositions
  135.     {
  136.         return $this->position;
  137.     }
  138.     public function setPosition(?ContactPersonPositions $position): self
  139.     {
  140.         $this->position $position;
  141.         return $this;
  142.     }
  143. }