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

Open in your IDE?
  1. <?php
  2. namespace Aviatur\CruiserBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * CruiseLine.
  6.  *
  7.  * @ORM\Table(name="cruise_line")
  8.  * @ORM\Entity
  9.  */
  10. class CruiseLine
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="lineCode", type="string", length=10, nullable=false)
  24.      */
  25.     private $linecode;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="name", type="string", length=255, nullable=false)
  30.      */
  31.     private $name;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="logoUrl", type="string", length=255, nullable=false)
  36.      */
  37.     private $logourl;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="smallLogoUrl", type="string", length=255, nullable=false)
  42.      */
  43.     private $smalllogourl;
  44.     /**
  45.      * @ORM\OneToMany(targetEntity="Aviatur\CruiserBundle\Entity\CruiseShip", mappedBy="cruise_line_id")
  46.      */
  47.     private $cruise_ship;
  48.     /**
  49.      * Constructor.
  50.      */
  51.     public function __construct()
  52.     {
  53.         $this->cruise_ship = new \Doctrine\Common\Collections\ArrayCollection();
  54.     }
  55.     /**
  56.      * Get id.
  57.      *
  58.      * @return int
  59.      */
  60.     public function getId()
  61.     {
  62.         return $this->id;
  63.     }
  64.     /**
  65.      * Set linecode.
  66.      *
  67.      * @param string $linecode
  68.      *
  69.      * @return CruiseLine
  70.      */
  71.     public function setLinecode($linecode)
  72.     {
  73.         $this->linecode $linecode;
  74.         return $this;
  75.     }
  76.     /**
  77.      * Get linecode.
  78.      *
  79.      * @return string
  80.      */
  81.     public function getLinecode()
  82.     {
  83.         return $this->linecode;
  84.     }
  85.     /**
  86.      * Set name.
  87.      *
  88.      * @param string $name
  89.      *
  90.      * @return CruiseLine
  91.      */
  92.     public function setName($name)
  93.     {
  94.         $this->name $name;
  95.         return $this;
  96.     }
  97.     /**
  98.      * Get name.
  99.      *
  100.      * @return string
  101.      */
  102.     public function getName()
  103.     {
  104.         return $this->name;
  105.     }
  106.     /**
  107.      * Set logourl.
  108.      *
  109.      * @param string $logourl
  110.      *
  111.      * @return CruiseLine
  112.      */
  113.     public function setLogourl($logourl)
  114.     {
  115.         $this->logourl $logourl;
  116.         return $this;
  117.     }
  118.     /**
  119.      * Get logourl.
  120.      *
  121.      * @return string
  122.      */
  123.     public function getLogourl()
  124.     {
  125.         return $this->logourl;
  126.     }
  127.     /**
  128.      * Set smalllogourl.
  129.      *
  130.      * @param string $smalllogourl
  131.      *
  132.      * @return CruiseLine
  133.      */
  134.     public function setSmalllogourl($smalllogourl)
  135.     {
  136.         $this->smalllogourl $smalllogourl;
  137.         return $this;
  138.     }
  139.     /**
  140.      * Get smalllogourl.
  141.      *
  142.      * @return string
  143.      */
  144.     public function getSmalllogourl()
  145.     {
  146.         return $this->smalllogourl;
  147.     }
  148.     /**
  149.      * Add cruise_ship.
  150.      *
  151.      * @return CruiseLine
  152.      */
  153.     public function addCruiseShip(\Aviatur\CruiserBundle\Entity\CruiseShip $cruise_ship)
  154.     {
  155.         $this->cruise_ship[] = $cruise_ship;
  156.         return $this;
  157.     }
  158.     /**
  159.      * Remove cruise_ship.
  160.      */
  161.     public function removeCruiseShip(\Aviatur\CruiserBundle\Entity\CruiseShip $cruise_ship)
  162.     {
  163.         $this->cruise_ship->removeElement($cruise_ship);
  164.     }
  165.     /**
  166.      * Get cruise_ship.
  167.      *
  168.      * @return \Doctrine\Common\Collections\Collection
  169.      */
  170.     public function getCruiseShip()
  171.     {
  172.         return $this->cruise_ship;
  173.     }
  174. }