src/Entity/Paperstock.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PaperstockRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=PaperstockRepository::class)
  8.  */
  9. class Paperstock
  10. {
  11.     /**
  12.      * @Groups({"Paperstock_read"})
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @Groups({"Paperstock_read"})
  20.      * @ORM\Column(type="string", length=255)
  21.      */
  22.     private $name;
  23.     /**
  24.      * @ORM\Column(type="datetime_immutable")
  25.      */
  26.     private $createdAt;
  27.     /**
  28.      * @ORM\Column(type="datetime_immutable")
  29.      */
  30.     private $updatedAt;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getName(): ?string
  36.     {
  37.         return $this->name;
  38.     }
  39.     public function setName(string $name): self
  40.     {
  41.         $this->name $name;
  42.         return $this;
  43.     }
  44.     public function getCreatedAt(): ?\DateTimeImmutable
  45.     {
  46.         return $this->createdAt;
  47.     }
  48.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  49.     {
  50.         $this->createdAt $createdAt;
  51.         return $this;
  52.     }
  53.     public function getUpdatedAt(): ?\DateTimeImmutable
  54.     {
  55.         return $this->updatedAt;
  56.     }
  57.     public function setUpdatedAt(\DateTimeImmutable $updatedAt): self
  58.     {
  59.         $this->updatedAt $updatedAt;
  60.         return $this;
  61.     }
  62. }