src/Entity/Main/ApiPropertiesI18n.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Main;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ApiPropertiesI18n
  6.  *
  7.  * @ORM\Table(name="api_properties_i18n")
  8.  * @ORM\Entity(repositoryClass="App\Repository\Main\ApiPropertiesI18nRepository")
  9.  */
  10. class ApiPropertiesI18n
  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=5, nullable=false, options={"fixed"=true})
  24.      * @ORM\Id
  25.      * @ORM\GeneratedValue(strategy="NONE")
  26.      */
  27.     private $codLang;
  28.     /**
  29.      * @var string|null
  30.      *
  31.      * @ORM\Column(name="anuncio", type="text", length=65535, nullable=true, options={"default"="NULL"})
  32.      */
  33.     private $anuncio '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 getAnuncio(): ?string
  43.     {
  44.         return $this->anuncio;
  45.     }
  46.     public function setAnuncio(?string $anuncio): self
  47.     {
  48.         $this->anuncio $anuncio;
  49.         return $this;
  50.     }
  51. }