<?php
namespace Aviatur\CruiserBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* CruiserPortsGeolocalization.
*
* @ORM\Table(name="cruise_port_geolocalization", indexes={@ORM\Index(name="portName", columns={"portName"})})
* @ORM\Entity
*/
class CruiserPortsGeolocalization
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")}
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="portName", type="string", length=100)
*/
private $portName;
/**
* @var string
*
* @ORM\Column(name="latitude", type="string", length=100)
*/
private $latitude;
/**
* @var string
*
* @ORM\Column(name="longitude", type="string", length=100)
*/
private $longitude;
/**
* @ORM\Column(name="isActive", type="integer", nullable=false)
*/
private string $isactive = '0';
/**
* @var \Aviatur\GeneralBundle\Entity\Country
*
* @ORM\ManyToOne(targetEntity="\Aviatur\GeneralBundle\Entity\Country", inversedBy="port")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="country_id", referencedColumnName="id")
* })
*/
private $country;
/**
* @var \Aviatur\CruiserBundle\Entity\CruiseRegionPorts
*
* @ORM\OneToMany(targetEntity="\Aviatur\CruiserBundle\Entity\CruiseRegionPorts", mappedBy="cruiserPortsGeolocalization")
*/
private \Doctrine\Common\Collections\ArrayCollection $cruiserPort;
/**
* Constructor.
*/
public function __construct()
{
$this->cruiserPort = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set portName.
*
* @param string $portName
*
* @return CruiserPortsGeolocalization
*/
public function setPortname($portName)
{
$this->portName = $portName;
return $this;
}
/**
* Get portName.
*
* @return string
*/
public function getPortname()
{
return $this->portName;
}
/**
* Set latitude.
*
* @param string $latitude
*
* @return CruiserPortsGeolocalization
*/
public function setLatitude($latitude)
{
$this->latitude = $latitude;
return $this;
}
/**
* Get latitude.
*
* @return string
*/
public function getLatitude()
{
return $this->latitude;
}
/**
* Set isactive.
*
* @param int $isactive
*
* @return CruisePortGeolocalization
*/
public function setIsactive($isactive)
{
$this->isactive = $isactive;
return $this;
}
/**
* Get isactive.
*
* @return int
*/
public function getIsactive()
{
return $this->isactive;
}
/**
* Set longitude.
*
* @param string $longitude
*
* @return CruiserPortsGeolocalization
*/
public function setLongitude($longitude)
{
$this->longitude = $longitude;
return $this;
}
/**
* Get longitude.
*
* @return string
*/
public function getLongitude()
{
return $this->longitude;
}
/**
* Set country.
*
* @param \Aviatur\GeneralBundle\Entity\Country $country
*
* @return \Aviatur\GeneralBundle\Entity\Country
*/
public function setCountry($country)
{
$this->country = $country;
return $this;
}
/**
* Get country.
*
* @return \Aviatur\GeneralBundle\Entity\Country
*/
public function getCountry()
{
return $this->country;
}
}