<?php
namespace Aviatur\CruiserBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* CruiseLine.
*
* @ORM\Table(name="cruise_line")
* @ORM\Entity
*/
class CruiseLine
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="lineCode", type="string", length=10, nullable=false)
*/
private $linecode;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255, nullable=false)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="logoUrl", type="string", length=255, nullable=false)
*/
private $logourl;
/**
* @var string
*
* @ORM\Column(name="smallLogoUrl", type="string", length=255, nullable=false)
*/
private $smalllogourl;
/**
* @ORM\OneToMany(targetEntity="Aviatur\CruiserBundle\Entity\CruiseShip", mappedBy="cruise_line_id")
*/
private $cruise_ship;
/**
* Constructor.
*/
public function __construct()
{
$this->cruise_ship = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set linecode.
*
* @param string $linecode
*
* @return CruiseLine
*/
public function setLinecode($linecode)
{
$this->linecode = $linecode;
return $this;
}
/**
* Get linecode.
*
* @return string
*/
public function getLinecode()
{
return $this->linecode;
}
/**
* Set name.
*
* @param string $name
*
* @return CruiseLine
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name.
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set logourl.
*
* @param string $logourl
*
* @return CruiseLine
*/
public function setLogourl($logourl)
{
$this->logourl = $logourl;
return $this;
}
/**
* Get logourl.
*
* @return string
*/
public function getLogourl()
{
return $this->logourl;
}
/**
* Set smalllogourl.
*
* @param string $smalllogourl
*
* @return CruiseLine
*/
public function setSmalllogourl($smalllogourl)
{
$this->smalllogourl = $smalllogourl;
return $this;
}
/**
* Get smalllogourl.
*
* @return string
*/
public function getSmalllogourl()
{
return $this->smalllogourl;
}
/**
* Add cruise_ship.
*
* @return CruiseLine
*/
public function addCruiseShip(\Aviatur\CruiserBundle\Entity\CruiseShip $cruise_ship)
{
$this->cruise_ship[] = $cruise_ship;
return $this;
}
/**
* Remove cruise_ship.
*/
public function removeCruiseShip(\Aviatur\CruiserBundle\Entity\CruiseShip $cruise_ship)
{
$this->cruise_ship->removeElement($cruise_ship);
}
/**
* Get cruise_ship.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCruiseShip()
{
return $this->cruise_ship;
}
}