src/Entity/ViajeTranslation.php line 15
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Knp\DoctrineBehaviors\Model as ORMBehaviors;
- use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
- use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
- /**
- * @ORM\Entity
- * @ORM\Table(name="viaje_translation")
- */
- class ViajeTranslation 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="destino", type="string", length=255)
- */
- private $destino;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- public function getDestino(): ?string
- {
- return $this->destino;
- }
- public function setDestino(string $destino): self
- {
- $this->destino = $destino;
- return $this;
- }
- }