src/Entity/ViajeTranslation.php line 15

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Knp\DoctrineBehaviors\Model as ORMBehaviors;
  5. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  6. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  7. /**
  8. * @ORM\Entity
  9. * @ORM\Table(name="viaje_translation")
  10. */
  11. class ViajeTranslation implements TranslationInterface
  12. {
  13.     use TranslationTrait;
  14.     
  15.     
  16.      /**
  17.      * @var integer
  18.      *
  19.      * @ORM\Column(name="id", type="integer")
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue(strategy="AUTO")
  22.      */
  23.     protected $id;    
  24.     
  25.     /**
  26.      * @var string
  27.      *
  28.      * @ORM\Column(name="destino", type="string", length=255)
  29.      */
  30.     private $destino;   
  31.     
  32.     /**
  33.      * Get id
  34.      *
  35.      * @return integer 
  36.      */
  37.     public function getId()
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getDestino(): ?string
  42.     {
  43.         return $this->destino;
  44.     }
  45.     public function setDestino(string $destino): self
  46.     {
  47.         $this->destino $destino;
  48.         return $this;
  49.     }       
  50.     
  51.      
  52. }