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

Open in your IDE?
  1. <?php
  2. namespace Aviatur\CruiserBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * CruiseShip.
  6.  *
  7.  * @ORM\Table(name="cruise_ship", indexes={@ORM\Index(name="shipCode", columns={"shipCode"})})
  8.  * @ORM\Entity(repositoryClass="Aviatur\CruiserBundle\Entity\CruiseShipRepository")
  9.  */
  10. class CruiseShip
  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 int
  22.      *
  23.      * @ORM\Column(name="shipCode", type="integer")
  24.      */
  25.     private $shipcode;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="name", type="string", length=255)
  30.      */
  31.     private $name;
  32.     /**
  33.      * @ORM\Column(name="isActive", type="integer", nullable=false)
  34.      */
  35.     private string $isactive '0';
  36.     /**
  37.      *
  38.      * @ORM\ManyToOne(targetEntity="Aviatur\CruiserBundle\Entity\CruiseLine", inversedBy="cruise_ship")
  39.      * @ORM\JoinColumns({
  40.      *   @ORM\JoinColumn(name="cruise_line_id", referencedColumnName="id")
  41.      * })
  42.      */
  43.     private ?\Aviatur\CruiserBundle\Entity\CruiseLine $cruise_line_id null;
  44.     public function getId()
  45.     {
  46.         return $this->id;
  47.     }
  48.     /**
  49.      * Set shipcode.
  50.      *
  51.      * @param int $shipcode
  52.      *
  53.      * @return CruiseShip
  54.      */
  55.     public function setShipcode($shipcode)
  56.     {
  57.         $this->shipcode $shipcode;
  58.         return $this;
  59.     }
  60.     /**
  61.      * Get shipcode.
  62.      *
  63.      * @return int
  64.      */
  65.     public function getShipcode()
  66.     {
  67.         return $this->shipcode;
  68.     }
  69.     /**
  70.      * Set name.
  71.      *
  72.      * @param string $name
  73.      *
  74.      * @return CruiseShip
  75.      */
  76.     public function setName($name)
  77.     {
  78.         $this->name $name;
  79.         return $this;
  80.     }
  81.     /**
  82.      * Get name.
  83.      *
  84.      * @return string
  85.      */
  86.     public function getName()
  87.     {
  88.         return $this->name;
  89.     }
  90.     /**
  91.      * Set isactive.
  92.      *
  93.      * @param int $isactive
  94.      *
  95.      * @return CruiseShip
  96.      */
  97.     public function setIsactive($isactive)
  98.     {
  99.         $this->isactive $isactive;
  100.         return $this;
  101.     }
  102.     /**
  103.      * Get isactive.
  104.      *
  105.      * @return int
  106.      */
  107.     public function getIsactive()
  108.     {
  109.         return $this->isactive;
  110.     }
  111.     /**
  112.      * Set cruise_line_id.
  113.      *
  114.      * @param \Aviatur\CruiserBundle\Entity\CruiseLine $cruise_line_id
  115.      *
  116.      * @return CruiseShip
  117.      */
  118.     public function setCruiseline(\Aviatur\CruiserBundle\Entity\CruiseLine $cruise_line_id null)
  119.     {
  120.         $this->cruise_line_id $cruise_line_id;
  121.         return $this;
  122.     }
  123.     /**
  124.      * Get cruise_line_id.
  125.      *
  126.      * @return \Aviatur\CruiserBundle\Entity\CruiseLine
  127.      */
  128.     public function getCruiseline()
  129.     {
  130.         return $this->cruise_line_id;
  131.     }
  132. }