<?phpnamespace Aviatur\CruiserBundle\Entity;use Doctrine\ORM\Mapping as ORM;/** * Region. * * @ORM\Table(name="region") * @ORM\Entity */class Region{ /** * @var int * * @ORM\Column(name="id", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") */ private $id; /** * @var string * * @ORM\Column(name="regionCode", type="integer", length=11, nullable=false) */ private $regioncode; /** * @var string * * @ORM\Column(name="name", type="string", length=255, nullable=false) */ private $name; /** * @var \Aviatur\CruiserBundle\Entity\CruiseRegionPorts * * @ORM\OneToMany(targetEntity="\Aviatur\CruiserBundle\Entity\CruiseRegionPorts", mappedBy="region") */ private $cruiseRegionPorts; /** * Constructor. */ public function __construct() { $this->cruiseRegionPorts = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Set regioncode. * * @param string $regioncode * * @return Region */ public function setregionCode($regioncode) { $this->regioncode = $regioncode; return $this; } /** * Get regioncode. * * @return string */ public function getregionCode() { return $this->regioncode; } /** * Set name. * * @param string $name * * @return Region */ public function setName($name) { $this->name = $name; return $this; } /** * Get name. * * @return string */ public function getName() { return $this->name; } /** * Add cruiseRegionPorts. * * @return Region */ public function addCruiseRegionPorts(\Aviatur\CruiserBundle\Entity\CruiseRegionPorts $cruiseRegionPorts) { $this->cruiseRegionPorts[] = $cruiseRegionPorts; return $this; } /** * Remove cruiseRegionPorts. */ public function removeCruiseRegionPorts(\Aviatur\CruiserBundle\Entity\CruiseRegionPorts $cruiseRegionPorts) { $this->cruiseRegionPorts->removeElement($cruiseRegionPorts); } /** * Get cruiseRegionPorts. * * @return \Doctrine\Common\Collections\Collection */ public function getCruiseRegionPorts() { return $this->cruiseRegionPorts; }}