src/Entity/ProductForms.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductFormsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassProductFormsRepository::class)]
  6. class ProductForms
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $name;
  14.     #[ORM\Column(type'datetime')]
  15.     private $modified;
  16.     #[ORM\Column(type'datetime')]
  17.     private $created;
  18.     public function __construct()
  19.     {
  20.         $this->setCreated(new \DateTime());
  21.         if ($this->getModified() == null) {
  22.             $this->setModified(new \DateTime());
  23.         }
  24.     }
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getName(): ?string
  30.     {
  31.         return $this->name;
  32.     }
  33.     public function setName(string $name): self
  34.     {
  35.         $this->name $name;
  36.         return $this;
  37.     }
  38.     public function getModified(): ?\DateTimeInterface
  39.     {
  40.         return $this->modified;
  41.     }
  42.     public function setModified(\DateTimeInterface $modified): self
  43.     {
  44.         $this->modified $modified;
  45.         return $this;
  46.     }
  47.     public function getCreated(): ?\DateTimeInterface
  48.     {
  49.         return $this->created;
  50.     }
  51.     public function setCreated(\DateTimeInterface $created): self
  52.     {
  53.         $this->created $created;
  54.         return $this;
  55.     }
  56. }