vendor/ssh/myjwtbundle/Entity/WordingDomain.php line 13

Open in your IDE?
  1. <?php
  2. namespace SSH\MyJwtBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * WordingDomain
  6.  *
  7.  * @ORM\Table(name="wording_domain")
  8.  * @ORM\Entity(repositoryClass="SSH\MyJwtBundle\Repository\WordingDomainRepository", readOnly=true)
  9.  */
  10. class WordingDomain
  11. {
  12.     /**
  13.      * @var integer
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="code", type="string", length=100, nullable=false)
  24.      */
  25.     private $code;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="label", type="string", length=100, nullable=false)
  30.      */
  31.     private $label;
  32.     /**
  33.      * @var \DateTime
  34.      *
  35.      * @ORM\Column(name="created_at", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
  36.      */
  37.     private $createdAt 'CURRENT_TIMESTAMP';
  38.     /**
  39.      * @var \DateTime|null
  40.      *
  41.      * @ORM\Column(name="updated_at", type="datetime", nullable=true)
  42.      */
  43.     private $updatedAt;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getCode(): ?string
  49.     {
  50.         return $this->code;
  51.     }
  52.     public function setCode(string $code): self
  53.     {
  54.         $this->code $code;
  55.         return $this;
  56.     }
  57.     public function getLabel(): ?string
  58.     {
  59.         return $this->label;
  60.     }
  61.     public function setLabel(string $label): self
  62.     {
  63.         $this->label $label;
  64.         return $this;
  65.     }
  66.     public function getCreatedAt(): ?\DateTimeInterface
  67.     {
  68.         return $this->createdAt;
  69.     }
  70.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  71.     {
  72.         $this->createdAt $createdAt;
  73.         return $this;
  74.     }
  75.     public function getUpdatedAt(): ?\DateTimeInterface
  76.     {
  77.         return $this->updatedAt;
  78.     }
  79.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  80.     {
  81.         $this->updatedAt $updatedAt;
  82.         return $this;
  83.     }
  84. }