src/Entity/Support.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SupportRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[
  7.     ORM\Entity(repositoryClassSupportRepository::class),
  8.     ORM\Table(name'support'),
  9.     ORM\HasLifecycleCallbacks,
  10. ]
  11. class Support
  12. {
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column]
  16.     private ?int $id null;
  17.     #[ORM\Column(typeTypes::TEXT)]
  18.     private ?string $description null;
  19.     #[ORM\Column(typeTypes::TEXT)]
  20.     private ?string $actions_realized null;
  21.     #[ORM\Column(typeTypes::TEXT)]
  22.     private ?string $url null;
  23.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  24.     private ?\DateTimeInterface $date_time null;
  25.     #[ORM\Column(typeTypes::BOOLEAN)]
  26.     private bool $is_blocking false;
  27.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  28.     private ?string $expected_actions null;
  29.     #[ORM\Column(typeTypes::DATE_IMMUTABLE)]
  30.     private \DateTimeInterface $created_at;
  31.     #[ORM\Column(typeTypes::DATE_IMMUTABLE)]
  32.     private \DateTimeInterface $updated_at;
  33.     #[ORM\ManyToOne(inversedBy'supports')]
  34.     #[ORM\JoinTable(name'customer_information_id')]
  35.     private ?CustomerInformation $customer_information null;
  36.     #[ORM\Column(length255nullabletrue)]
  37.     private ?string $blocking_description null;
  38.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  39.     private ?\DateTimeInterface $blocking_deadline null;
  40.     #[ORM\Column(length255nullabletrue)]
  41.     private ?string $another_details null;
  42.     public function __construct()
  43.     {
  44.         $this->created_at = (new \DateTime())->setTime(000);
  45.         $this->updated_at = (new \DateTime())->setTime(000);
  46.     }
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getDescription(): ?string
  52.     {
  53.         return $this->description;
  54.     }
  55.     public function setDescription(string $description): self
  56.     {
  57.         $this->description $description;
  58.         return $this;
  59.     }
  60.     public function getActionsRealized(): ?string
  61.     {
  62.         return $this->actions_realized;
  63.     }
  64.     public function setActionsRealized(string $actions_realized): self
  65.     {
  66.         $this->actions_realized $actions_realized;
  67.         return $this;
  68.     }
  69.     public function getUrl(): ?string
  70.     {
  71.         return $this->url;
  72.     }
  73.     public function setUrl(string $url): self
  74.     {
  75.         $this->url $url;
  76.         return $this;
  77.     }
  78.     public function getDateTime(): ?\DateTimeInterface
  79.     {
  80.         return $this->date_time;
  81.     }
  82.     public function setDateTime(\DateTimeInterface $date_time): self
  83.     {
  84.         $this->date_time $date_time;
  85.         return $this;
  86.     }
  87.     public function getIsBlocking(): bool
  88.     {
  89.         return $this->is_blocking;
  90.     }
  91.     public function setIsBlocking(bool $is_blocking): self
  92.     {
  93.         $this->is_blocking $is_blocking;
  94.         return $this;
  95.     }
  96.     public function getExpectedActions(): ?string
  97.     {
  98.         return $this->expected_actions;
  99.     }
  100.     public function setExpectedActions(?string $expected_actions): self
  101.     {
  102.         $this->expected_actions $expected_actions;
  103.         return $this;
  104.     }
  105.     public function getCreated_at(): \DateTimeInterface
  106.     {
  107.         return $this->created_at;
  108.     }
  109.     public function getUpdated_at(): \DateTimeInterface
  110.     {
  111.         return $this->updated_at;
  112.     }
  113.     public function setUpdated_at(\DateTimeInterface $updated_at): self
  114.     {
  115.         $this->updated_at $updated_at;
  116.         return $this;
  117.     }
  118.     #[ORM\PreUpdate]
  119.     public function preUpdate(): void
  120.     {
  121.         $this->updated_at = new \DateTime();
  122.     }
  123.     public function getCustomerInformation(): ?CustomerInformation
  124.     {
  125.         return $this->customer_information;
  126.     }
  127.     public function setCustomerInformation(?CustomerInformation $customer_information): self
  128.     {
  129.         $this->customer_information $customer_information;
  130.         return $this;
  131.     }
  132.     public function getBlockingDescription(): ?string
  133.     {
  134.         return $this->blocking_description;
  135.     }
  136.     public function setBlockingDescription(?string $blocking_description): self
  137.     {
  138.         $this->blocking_description $blocking_description;
  139.         return $this;
  140.     }
  141.     public function getBlockingDeadline(): ?\DateTimeInterface
  142.     {
  143.         return $this->blocking_deadline;
  144.     }
  145.     public function setBlockingDeadline(?\DateTimeInterface $blocking_deadline): self
  146.     {
  147.         $this->blocking_deadline $blocking_deadline;
  148.         return $this;
  149.     }
  150.     public function getAnotherDetails(): ?string
  151.     {
  152.         return $this->another_details;
  153.     }
  154.     public function setAnotherDetails(?string $another_details): self
  155.     {
  156.         $this->another_details $another_details;
  157.         return $this;
  158.     }
  159. }