src/Aviatur/GeneralBundle/Entity/Weather.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Weather.
  6.  *
  7.  * @ORM\Table(name="weather")
  8.  * @ORM\Entity(repositoryClass="WeatherRepository")
  9.  */
  10. class Weather
  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="location", type="string", length=250, nullable=false)
  24.      */
  25.     public $location;
  26.     /**
  27.      * @var \DateTime
  28.      *
  29.      * @ORM\Column(name="day", type="date", nullable=false)
  30.      */
  31.     private $day;
  32.     /**
  33.      * @var bool
  34.      *
  35.      * @ORM\Column(name = "isday", type = "boolean", nullable=false)
  36.      */
  37.     private $isday;
  38.     /**
  39.      * @var float
  40.      *
  41.      * @ORM\Column(name="temperature", type="float", nullable=false)
  42.      */
  43.     public $temperature;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="state", type="string", length=150, nullable=false)
  48.      */
  49.     public $state;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="icon", type="string", length=50, nullable=false)
  54.      */
  55.     public $icon;
  56.     /**
  57.      * @var string
  58.      *
  59.      * @ORM\Column(name="forecast", type="text", nullable=false)
  60.      */
  61.     private $forecast;
  62.     /**
  63.      * @var \DateTime
  64.      *
  65.      * @ORM\Column(name="entrydate", type="datetime", nullable=false)
  66.      */
  67.     private $entrydate;
  68.     /**
  69.      * Get id.
  70.      *
  71.      * @return int
  72.      */
  73.     public function getId()
  74.     {
  75.         return $this->id;
  76.     }
  77.     /**
  78.      * Set location.
  79.      *
  80.      * @param string $location
  81.      *
  82.      * @return Weather
  83.      */
  84.     public function setLocation($location)
  85.     {
  86.         $this->location $location;
  87.         return $this;
  88.     }
  89.     /**
  90.      * Get location.
  91.      *
  92.      * @return string
  93.      */
  94.     public function getLocation()
  95.     {
  96.         return $this->location;
  97.     }
  98.     /**
  99.      * Set day.
  100.      *
  101.      * @param \DateTime $day
  102.      *
  103.      * @return Weather
  104.      */
  105.     public function setDay($day)
  106.     {
  107.         $this->day $day;
  108.         return $this;
  109.     }
  110.     /**
  111.      * Get day.
  112.      *
  113.      * @return \DateTime
  114.      */
  115.     public function getDay()
  116.     {
  117.         return $this->day;
  118.     }
  119.     /**
  120.      * Set temperature.
  121.      *
  122.      * @param float $temperature
  123.      *
  124.      * @return Weather
  125.      */
  126.     public function setTemperature($temperature)
  127.     {
  128.         $this->temperature $temperature;
  129.         return $this;
  130.     }
  131.     /**
  132.      * Get temperature.
  133.      *
  134.      * @return float
  135.      */
  136.     public function getTemperature()
  137.     {
  138.         return $this->temperature;
  139.     }
  140.     /**
  141.      * Set state.
  142.      *
  143.      * @param string $state
  144.      *
  145.      * @return Weather
  146.      */
  147.     public function setState($state)
  148.     {
  149.         $this->state $state;
  150.         return $this;
  151.     }
  152.     /**
  153.      * Get state.
  154.      *
  155.      * @return string
  156.      */
  157.     public function getState()
  158.     {
  159.         return $this->state;
  160.     }
  161.     /**
  162.      * Set icon.
  163.      *
  164.      * @param string $icon
  165.      *
  166.      * @return Weather
  167.      */
  168.     public function setIcon($icon)
  169.     {
  170.         $this->icon $icon;
  171.         return $this;
  172.     }
  173.     /**
  174.      * Get icon.
  175.      *
  176.      * @return string
  177.      */
  178.     public function getIcon()
  179.     {
  180.         return $this->icon;
  181.     }
  182.     /**
  183.      * Set forecast.
  184.      *
  185.      * @param string $forecast
  186.      *
  187.      * @return Weather
  188.      */
  189.     public function setForecast($forecast)
  190.     {
  191.         $this->forecast $forecast;
  192.         return $this;
  193.     }
  194.     /**
  195.      * Get forecast.
  196.      *
  197.      * @return string
  198.      */
  199.     public function getForecast()
  200.     {
  201.         return $this->forecast;
  202.     }
  203.     /**
  204.      * Set entrydate.
  205.      *
  206.      * @param \DateTime $entrydate
  207.      *
  208.      * @return Weather
  209.      */
  210.     public function setEntrydate($entrydate)
  211.     {
  212.         $this->entrydate $entrydate;
  213.         return $this;
  214.     }
  215.     /**
  216.      * Get entrydate.
  217.      *
  218.      * @return \DateTime
  219.      */
  220.     public function getEntrydate()
  221.     {
  222.         return $this->entrydate;
  223.     }
  224.     /**
  225.      * Set isday.
  226.      *
  227.      * @param bool $isday
  228.      *
  229.      * @return Weather
  230.      */
  231.     public function setIsday($isday)
  232.     {
  233.         $this->isday $isday;
  234.         return $this;
  235.     }
  236.     /**
  237.      * Get isday.
  238.      *
  239.      * @return bool
  240.      */
  241.     public function getIsday()
  242.     {
  243.         return $this->isday;
  244.     }
  245. }