src/Uniski/ResourceBundle/Entity/ValueObject/SkiStation.php line 13

Open in your IDE?
  1. <?php
  2. namespace Uniski\ResourceBundle\Entity\ValueObject;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * SkiStation
  6. * @ORM\Embeddable
  7. */
  8. class SkiStation
  9. {
  10.     
  11.     /**
  12.      * @var string
  13.      * @ORM\Column(type="smallint", nullable=true)
  14.      */
  15.     private $maxHeight;
  16.     /**
  17.      * @var string
  18.      * @ORM\Column(type="smallint", nullable=true)
  19.      */
  20.     private $minHeight;
  21.     /**
  22.      * @var string
  23.      * @ORM\Column(type="smallint", nullable=true)
  24.      */
  25.     private $kms;
  26.     /**
  27.      * @var string
  28.      * @ORM\Column(type="smallint", nullable=true)
  29.      */
  30.     private $slopes;
  31.     /**
  32.      * @var string
  33.      * @ORM\Column(type="smallint", nullable=true)
  34.      */
  35.     private $greens;
  36.     /**
  37.      * @var string
  38.      * @ORM\Column(type="smallint", nullable=true)
  39.      */
  40.     private $blues;
  41.     /**
  42.      * @var string
  43.      * @ORM\Column(type="smallint", nullable=true)
  44.      */
  45.     private $reds;
  46.     /**
  47.      * @var string
  48.      * @ORM\Column(type="smallint", nullable=true)
  49.      */
  50.     private $blacks;
  51.     /**
  52.      * @var string
  53.      * @ORM\Column(type="text", nullable=true)
  54.      */
  55.     private $facilities;
  56.     
  57.     /**
  58.      * @var string
  59.      * @ORM\Column(type="text", nullable=true)
  60.      */
  61.     private $services;
  62.     /**
  63.      * @var string
  64.      * @ORM\Column(type="text", nullable=true)
  65.      */
  66.     private $forecast;
  67.     /**
  68.      * @return string
  69.      */
  70.     public function getMaxHeight()
  71.     {
  72.         return $this->maxHeight;
  73.     }
  74.     /**
  75.      * @param string $maxHeight
  76.      *
  77.      * @return self
  78.      */
  79.     public function setMaxHeight($maxHeight)
  80.     {
  81.         $this->maxHeight $maxHeight;
  82.         return $this;
  83.     }
  84.     /**
  85.      * @return string
  86.      */
  87.     public function getMinHeight()
  88.     {
  89.         return $this->minHeight;
  90.     }
  91.     /**
  92.      * @param string $minHeight
  93.      *
  94.      * @return self
  95.      */
  96.     public function setMinHeight($minHeight)
  97.     {
  98.         $this->minHeight $minHeight;
  99.         return $this;
  100.     }
  101.     /**
  102.      * @return string
  103.      */
  104.     public function getKms()
  105.     {
  106.         return $this->kms;
  107.     }
  108.     /**
  109.      * @param string $kms
  110.      *
  111.      * @return self
  112.      */
  113.     public function setKms($kms)
  114.     {
  115.         $this->kms $kms;
  116.         return $this;
  117.     }
  118.     /**
  119.      * @return string
  120.      */
  121.     public function getSlopes()
  122.     {
  123.         return $this->slopes;
  124.     }
  125.     /**
  126.      * @param string $slopes
  127.      *
  128.      * @return self
  129.      */
  130.     public function setSlopes($slopes)
  131.     {
  132.         $this->slopes $slopes;
  133.         return $this;
  134.     }
  135.     /**
  136.      * @return string
  137.      */
  138.     public function getGreens()
  139.     {
  140.         return $this->greens;
  141.     }
  142.     /**
  143.      * @param string $greens
  144.      *
  145.      * @return self
  146.      */
  147.     public function setGreens($greens)
  148.     {
  149.         $this->greens $greens;
  150.         return $this;
  151.     }
  152.     /**
  153.      * @return string
  154.      */
  155.     public function getBlues()
  156.     {
  157.         return $this->blues;
  158.     }
  159.     /**
  160.      * @param string $blues
  161.      *
  162.      * @return self
  163.      */
  164.     public function setBlues($blues)
  165.     {
  166.         $this->blues $blues;
  167.         return $this;
  168.     }
  169.     /**
  170.      * @return string
  171.      */
  172.     public function getReds()
  173.     {
  174.         return $this->reds;
  175.     }
  176.     /**
  177.      * @param string $reds
  178.      *
  179.      * @return self
  180.      */
  181.     public function setReds($reds)
  182.     {
  183.         $this->reds $reds;
  184.         return $this;
  185.     }
  186.     /**
  187.      * @return string
  188.      */
  189.     public function getBlacks()
  190.     {
  191.         return $this->blacks;
  192.     }
  193.     /**
  194.      * @param string $blacks
  195.      *
  196.      * @return self
  197.      */
  198.     public function setBlacks($blacks)
  199.     {
  200.         $this->blacks $blacks;
  201.         return $this;
  202.     }
  203.     /**
  204.      * @return string
  205.      */
  206.     public function getFacilities()
  207.     {
  208.         return $this->facilities;
  209.     }
  210.     /**
  211.      * @param string $facilities
  212.      *
  213.      * @return self
  214.      */
  215.     public function setFacilities($facilities)
  216.     {
  217.         $this->facilities $facilities;
  218.         return $this;
  219.     }
  220.     /**
  221.      * @return string
  222.      */
  223.     public function getServices()
  224.     {
  225.         return $this->services;
  226.     }
  227.     /**
  228.      * @param string $services
  229.      *
  230.      * @return self
  231.      */
  232.     public function setServices($services)
  233.     {
  234.         $this->services $services;
  235.         return $this;
  236.     }
  237.     /**
  238.      * @return string
  239.      */
  240.     public function getForecast()
  241.     {
  242.         return $this->forecast;
  243.     }
  244.     /**
  245.      * @param string $forecast
  246.      *
  247.      * @return self
  248.      */
  249.     public function setForecast($forecast)
  250.     {
  251.         $this->forecast $forecast;
  252.         return $this;
  253.     }
  254.     /**
  255.      * It tells if the object has info to be shown
  256.      * @return boolean true is this object has info to be shown
  257.      */
  258.     public function hasInfo()
  259.     {
  260.         if ($this->maxHeight ||
  261.             $this->minHeight ||
  262.             $this->kms ||
  263.             $this->facilities ||
  264.             $this->services) return true;
  265.         return false;
  266.     }
  267. }