src/Aviatur/CruiserBundle/Entity/CruiserPortsGeolocalization.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\CruiserBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * CruiserPortsGeolocalization.
  6.  *
  7.  * @ORM\Table(name="cruise_port_geolocalization", indexes={@ORM\Index(name="portName", columns={"portName"})})
  8.  * @ORM\Entity
  9.  */
  10. class CruiserPortsGeolocalization
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")}
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="portName", type="string", length=100)
  24.      */
  25.     private $portName;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="latitude", type="string", length=100)
  30.      */
  31.     private $latitude;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="longitude", type="string", length=100)
  36.      */
  37.     private $longitude;
  38.     /**
  39.      * @ORM\Column(name="isActive", type="integer", nullable=false)
  40.      */
  41.     private string $isactive '0';
  42.     /**
  43.      * @var \Aviatur\GeneralBundle\Entity\Country
  44.      *
  45.      * @ORM\ManyToOne(targetEntity="\Aviatur\GeneralBundle\Entity\Country", inversedBy="port")
  46.      * @ORM\JoinColumns({
  47.      *   @ORM\JoinColumn(name="country_id", referencedColumnName="id")
  48.      * })
  49.      */
  50.     private $country;
  51.     /**
  52.      * @var \Aviatur\CruiserBundle\Entity\CruiseRegionPorts
  53.      *
  54.      * @ORM\OneToMany(targetEntity="\Aviatur\CruiserBundle\Entity\CruiseRegionPorts", mappedBy="cruiserPortsGeolocalization")
  55.      */
  56.     private \Doctrine\Common\Collections\ArrayCollection $cruiserPort;
  57.     /**
  58.      * Constructor.
  59.      */
  60.     public function __construct()
  61.     {
  62.         $this->cruiserPort = new \Doctrine\Common\Collections\ArrayCollection();
  63.     }
  64.     /**
  65.      * Get id.
  66.      *
  67.      * @return int
  68.      */
  69.     public function getId()
  70.     {
  71.         return $this->id;
  72.     }
  73.     /**
  74.      * Set portName.
  75.      *
  76.      * @param string $portName
  77.      *
  78.      * @return CruiserPortsGeolocalization
  79.      */
  80.     public function setPortname($portName)
  81.     {
  82.         $this->portName $portName;
  83.         return $this;
  84.     }
  85.     /**
  86.      * Get portName.
  87.      *
  88.      * @return string
  89.      */
  90.     public function getPortname()
  91.     {
  92.         return $this->portName;
  93.     }
  94.     /**
  95.      * Set latitude.
  96.      *
  97.      * @param string $latitude
  98.      *
  99.      * @return CruiserPortsGeolocalization
  100.      */
  101.     public function setLatitude($latitude)
  102.     {
  103.         $this->latitude $latitude;
  104.         return $this;
  105.     }
  106.     /**
  107.      * Get latitude.
  108.      *
  109.      * @return string
  110.      */
  111.     public function getLatitude()
  112.     {
  113.         return $this->latitude;
  114.     }
  115.     /**
  116.      * Set isactive.
  117.      *
  118.      * @param int $isactive
  119.      *
  120.      * @return CruisePortGeolocalization
  121.      */
  122.     public function setIsactive($isactive)
  123.     {
  124.         $this->isactive $isactive;
  125.         return $this;
  126.     }
  127.     /**
  128.      * Get isactive.
  129.      *
  130.      * @return int
  131.      */
  132.     public function getIsactive()
  133.     {
  134.         return $this->isactive;
  135.     }
  136.     /**
  137.      * Set longitude.
  138.      *
  139.      * @param string $longitude
  140.      *
  141.      * @return CruiserPortsGeolocalization
  142.      */
  143.     public function setLongitude($longitude)
  144.     {
  145.         $this->longitude $longitude;
  146.         return $this;
  147.     }
  148.     /**
  149.      * Get longitude.
  150.      *
  151.      * @return string
  152.      */
  153.     public function getLongitude()
  154.     {
  155.         return $this->longitude;
  156.     }
  157.     /**
  158.      * Set country.
  159.      *
  160.      * @param \Aviatur\GeneralBundle\Entity\Country $country
  161.      *
  162.      * @return \Aviatur\GeneralBundle\Entity\Country
  163.      */
  164.     public function setCountry($country)
  165.     {
  166.         $this->country $country;
  167.         return $this;
  168.     }
  169.     /**
  170.      * Get country.
  171.      *
  172.      * @return \Aviatur\GeneralBundle\Entity\Country
  173.      */
  174.     public function getCountry()
  175.     {
  176.         return $this->country;
  177.     }
  178. }