src/Entity/ProjectOrderFeedback.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectOrderFeedbackRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ProjectOrderFeedbackRepository::class)
  8.  */
  9. class ProjectOrderFeedback
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      * @Groups({
  16.      *     "project.details.orders",
  17.      *      "order.detail"
  18.      * })
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=ProjectOrders::class, inversedBy="projectOrderFeedback")
  23.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  24.      */
  25.     private $project_order;
  26.     /**
  27.      * @deprecated use comment
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      * @Groups({
  30.      *      "project.details.orders",
  31.      *      "order.detail"
  32.      *  })
  33.      */
  34.     private $feedback;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="projectOrderFeedback")
  37.      * @Groups({
  38.      *      "project.details.orders",
  39.      *       "order.detail"
  40.      *  })
  41.      * @ORM\JoinColumn(onDelete="SET NULL")
  42.      */
  43.     private $user;
  44.     /**
  45.      * @ORM\Column(type="datetime_immutable", nullable=true)
  46.      * @Groups({
  47.      *      "project.details.orders",
  48.      *      "order.detail"
  49.      * })
  50.      */
  51.     private $created_at;
  52.     /**
  53.      * @ORM\Column(type="integer")
  54.      * @Groups({
  55.      *       "project.details.orders",
  56.      *       "order.detail"
  57.      *  })
  58.      */
  59.     private $order_status;
  60.     /**
  61.      * @ORM\Column(type="string", length=255, nullable=true)
  62.      * @Groups({
  63.      *     "project.details.orders",
  64.      *     "order.detail",
  65.      *     "order.feedback.core"
  66.      *   })
  67.      */
  68.     private $comment;
  69.     /**
  70.      * @ORM\Column(type="datetime_immutable", nullable=true)
  71.      * @Groups({
  72.      *      "project.details.orders",
  73.      *      "order.detail",
  74.      *      "order.feedback.core"
  75.      *    })
  76.      */
  77.     private $status_at;
  78.     public function getId(): ?int
  79.     {
  80.         return $this->id;
  81.     }
  82.     public function getProjectOrder(): ?ProjectOrders
  83.     {
  84.         return $this->project_order;
  85.     }
  86.     public function setProjectOrder(?ProjectOrders $project_order): self
  87.     {
  88.         $this->project_order $project_order;
  89.         return $this;
  90.     }
  91.     public function getFeedback(): ?string
  92.     {
  93.         return $this->feedback;
  94.     }
  95.     public function setFeedback(?string $feedback): self
  96.     {
  97.         $this->feedback $feedback;
  98.         return $this;
  99.     }
  100.     public function getUser(): ?User
  101.     {
  102.         return $this->user;
  103.     }
  104.     public function setUser(?User $user): self
  105.     {
  106.         $this->user $user;
  107.         return $this;
  108.     }
  109.     public function getCreatedAt(): ?\DateTimeImmutable
  110.     {
  111.         return $this->created_at;
  112.     }
  113.     public function setCreatedAt(?\DateTimeImmutable $created_at): self
  114.     {
  115.         $this->created_at $created_at;
  116.         return $this;
  117.     }
  118.     public function getOrderStatus(): ?int
  119.     {
  120.         return $this->order_status;
  121.     }
  122.     public function setOrderStatus(int $order_status): self
  123.     {
  124.         $this->order_status $order_status;
  125.         return $this;
  126.     }
  127.     public function getComment(): ?string
  128.     {
  129.         return $this->comment;
  130.     }
  131.     public function setComment(?string $comment): self
  132.     {
  133.         $this->comment $comment;
  134.         return $this;
  135.     }
  136.     public function getStatusAt(): ?\DateTimeImmutable
  137.     {
  138.         return $this->status_at;
  139.     }
  140.     public function setStatusAt(?\DateTimeImmutable $status_at): self
  141.     {
  142.         $this->status_at $status_at;
  143.         return $this;
  144.     }
  145. }