src/CoreBundle/Entity/Vehicles/Variation.php line 11

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity\Vehicles;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. /**
  6.  * Variation
  7.  */
  8. class Variation
  9. {
  10.     /**
  11.      * @var integer
  12.      */
  13.     private $id;
  14.     /**
  15.      * @var string
  16.      */
  17.     private $title;
  18.     /**
  19.      * @var integer
  20.      */
  21.     private $temp_id;
  22.     /**
  23.      * @var integer
  24.      */
  25.     private $state 0;
  26.     /**
  27.      * @var Collection
  28.      */
  29.     private $characteristics;
  30.     /**
  31.      * @var Vehicle
  32.      */
  33.     private $vehicle;
  34.     /**
  35.      * @var Collection
  36.      */
  37.     private $vehicle_items;
  38.     /**
  39.      * Constructor
  40.      */
  41.     public function __construct()
  42.     {
  43.         $this->characteristics = new ArrayCollection();
  44.         $this->vehicle_items = new ArrayCollection();
  45.     }
  46.     /**
  47.      * Get id
  48.      *
  49.      * @return integer
  50.      */
  51.     public function getId()
  52.     {
  53.         return $this->id;
  54.     }
  55.     /**
  56.      * Set title
  57.      *
  58.      * @param string $title
  59.      *
  60.      * @return Variation
  61.      */
  62.     public function setTitle($title)
  63.     {
  64.         $this->title $title;
  65.         return $this;
  66.     }
  67.     /**
  68.      * Get title
  69.      *
  70.      * @return string
  71.      */
  72.     public function getTitle()
  73.     {
  74.         return $this->title;
  75.     }
  76.     /**
  77.      * Set tempId
  78.      *
  79.      * @param integer $tempId
  80.      *
  81.      * @return Variation
  82.      */
  83.     public function setTempId($tempId)
  84.     {
  85.         $this->temp_id $tempId;
  86.         return $this;
  87.     }
  88.     /**
  89.      * Get tempId
  90.      *
  91.      * @return integer
  92.      */
  93.     public function getTempId()
  94.     {
  95.         return $this->temp_id;
  96.     }
  97.     /**
  98.      * Set state
  99.      *
  100.      * @param integer $state
  101.      *
  102.      * @return Variation
  103.      */
  104.     public function setState($state)
  105.     {
  106.         $this->state $state;
  107.         return $this;
  108.     }
  109.     /**
  110.      * Get state
  111.      *
  112.      * @return integer
  113.      */
  114.     public function getState()
  115.     {
  116.         return $this->state 0;
  117.     }
  118.     /**
  119.      * Add characteristic
  120.      *
  121.      * @param VariationCharacteristic $characteristic
  122.      *
  123.      * @return Variation
  124.      */
  125.     public function addCharacteristic(VariationCharacteristic $characteristic)
  126.     {
  127.         $this->characteristics[] = $characteristic;
  128.         return $this;
  129.     }
  130.     /**
  131.      * Remove characteristic
  132.      *
  133.      * @param VariationCharacteristic $characteristic
  134.      */
  135.     public function removeCharacteristic(VariationCharacteristic $characteristic)
  136.     {
  137.         $this->characteristics->removeElement($characteristic);
  138.     }
  139.     /**
  140.      * Get characteristics
  141.      *
  142.      * @return Collection
  143.      */
  144.     public function getCharacteristics()
  145.     {
  146.         return $this->characteristics;
  147.     }
  148.     /**
  149.      * Set vehicle
  150.      *
  151.      * @param Vehicle $vehicle
  152.      *
  153.      * @return Variation
  154.      */
  155.     public function setVehicle(Vehicle $vehicle null)
  156.     {
  157.         $this->vehicle $vehicle;
  158.         return $this;
  159.     }
  160.     /**
  161.      * Get vehicle
  162.      *
  163.      * @return Vehicle
  164.      */
  165.     public function getVehicle()
  166.     {
  167.         return $this->vehicle;
  168.     }
  169.     /**
  170.      * Add vehicleItem
  171.      *
  172.      * @param VehicleItem $vehicleItem
  173.      *
  174.      * @return Variation
  175.      */
  176.     public function addVehicleItem(VehicleItem $vehicleItem)
  177.     {
  178.         $this->vehicle_items[] = $vehicleItem;
  179.         return $this;
  180.     }
  181.     /**
  182.      * Remove vehicleItem
  183.      *
  184.      * @param VehicleItem $vehicleItem
  185.      */
  186.     public function removeVehicleItem(VehicleItem $vehicleItem)
  187.     {
  188.         $this->vehicle_items->removeElement($vehicleItem);
  189.     }
  190.     /**
  191.      * Get vehicleItems
  192.      *
  193.      * @return Collection
  194.      */
  195.     public function getVehicleItems()
  196.     {
  197.         return $this->vehicle_items;
  198.     }
  199.     public function __toString()
  200.     {
  201.         return (string) $this->title;
  202.     }
  203.     /**
  204.      * @var string
  205.      */
  206.     private $public_title;
  207.     /**
  208.      * Set publicTitle
  209.      *
  210.      * @param string $publicTitle
  211.      *
  212.      * @return Variation
  213.      */
  214.     public function setPublicTitle($publicTitle)
  215.     {
  216.         $this->public_title $publicTitle;
  217.         return $this;
  218.     }
  219.     /**
  220.      * Get publicTitle
  221.      *
  222.      * @return string
  223.      */
  224.     public function getPublicTitle()
  225.     {
  226.         return $this->public_title;
  227.     }
  228. }