src/Entity/BannerItemTranslation.php line 17
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Gedmo\Mapping\Annotation as Gedmo;
- use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
- use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
- /**
- * MenuItemTranslation
- *
- * @ORM\Entity
- * @ORM\Table(name="banner_item_translation")
- */
- class BannerItemTranslation implements TranslationInterface
- {
- use TranslationTrait;
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- protected $id;
- /**
- * @var string
- *
- * @ORM\Column(name="titulo", type="string", length=255, nullable=true)
- */
- protected $titulo;
- /**
- * @var string
- *
- * @ORM\Column(name="url", type="string", length=255, nullable=true)
- */
- protected $url;
- /**
- * @var text
- *
- * @ORM\Column(name="texto", type="text", nullable=true)
- */
- protected $texto;
- /**
- * @var text
- *
- * @ORM\Column(name="codigo", type="text", nullable=true)
- */
- protected $codigo;
- public function __toString()
- {
- if ($this->titulo)
- return $this->titulo;
- else
- return "na";
- }
- /**
- * Set titulo
- *
- * @param string $titulo
- * @return BannerItemTranslation
- */
- public function setTitulo($titulo)
- {
- $this->titulo = $titulo;
- return $this;
- }
- /**
- * Get titulo
- *
- * @return string
- */
- public function getTitulo()
- {
- return $this->titulo;
- }
- /**
- * Set url
- *
- * @param string $url
- * @return BannerItemTranslation
- */
- public function setUrl($url)
- {
- $this->url = $url;
- return $this;
- }
- /**
- * Get url
- *
- * @return string
- */
- public function getUrl()
- {
- return $this->url;
- }
- /**
- * Set texto
- *
- * @param string $texto
- * @return BannerItemTranslation
- */
- public function setTexto($texto)
- {
- $this->texto = $texto;
- return $this;
- }
- /**
- * Get texto
- *
- * @return string
- */
- public function getTexto()
- {
- return $this->texto;
- }
- /**
- * Set codigo
- *
- * @param string $codigo
- * @return BannerItemTranslation
- */
- public function setCodigo($codigo)
- {
- $this->codigo = $codigo;
- return $this;
- }
- /**
- * Get codigo
- *
- * @return string
- */
- public function getCodigo()
- {
- return $this->codigo;
- }
- }