<?php
namespace App\Entity;
use App\Repository\ItineraryPicRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ItineraryPicRepository::class)
*/
class ItineraryPic
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $caption;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $img;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $position;
/**
* @ORM\ManyToOne(targetEntity=Offer::class, inversedBy="itineraryPics")
*/
private $Offer;
public function getId(): ?int
{
return $this->id;
}
public function getCaption(): ?string
{
return $this->caption;
}
public function setCaption(?string $caption): self
{
$this->caption = $caption;
return $this;
}
public function getImg(): ?string
{
return $this->img;
}
public function setImg(?string $img): self
{
$this->img = $img;
return $this;
}
public function getPosition(): ?int
{
return $this->position;
}
public function setPosition(?int $position): self
{
$this->position = $position;
return $this;
}
public function getOffer(): ?Offer
{
return $this->Offer;
}
public function setOffer(?Offer $Offer): self
{
$this->Offer = $Offer;
return $this;
}
}