src/Entity/Main/ApiPropertiesTypesI18n.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Main;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ApiPropertiesTypesI18n
  6.  *
  7.  * @ORM\Table(name="api_properties_types_i18n", indexes={@ORM\Index(name="id", columns={"id"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\Main\ApiPropertiesTypesI18nRepository")
  9.  */
  10. class ApiPropertiesTypesI18n
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="NONE")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="cod_lang", type="string", length=6, nullable=false)
  24.      * @ORM\Id
  25.      * @ORM\GeneratedValue(strategy="NONE")
  26.      */
  27.     private $codLang;
  28.     /**
  29.      * @var string|null
  30.      *
  31.      * @ORM\Column(name="text", type="string", length=250, nullable=true, options={"default"="NULL"})
  32.      */
  33.     private $text 'NULL';
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getCodLang(): ?string
  39.     {
  40.         return $this->codLang;
  41.     }
  42.     public function getText(): ?string
  43.     {
  44.         return $this->text;
  45.     }
  46.     public function setText(?string $text): self
  47.     {
  48.         $this->text $text;
  49.         return $this;
  50.     }
  51. }