<?php
namespace Aviatur\GeneralBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Weather.
*
* @ORM\Table(name="weather")
* @ORM\Entity(repositoryClass="WeatherRepository")
*/
class Weather
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="location", type="string", length=250, nullable=false)
*/
public $location;
/**
* @var \DateTime
*
* @ORM\Column(name="day", type="date", nullable=false)
*/
private $day;
/**
* @var bool
*
* @ORM\Column(name = "isday", type = "boolean", nullable=false)
*/
private $isday;
/**
* @var float
*
* @ORM\Column(name="temperature", type="float", nullable=false)
*/
public $temperature;
/**
* @var string
*
* @ORM\Column(name="state", type="string", length=150, nullable=false)
*/
public $state;
/**
* @var string
*
* @ORM\Column(name="icon", type="string", length=50, nullable=false)
*/
public $icon;
/**
* @var string
*
* @ORM\Column(name="forecast", type="text", nullable=false)
*/
private $forecast;
/**
* @var \DateTime
*
* @ORM\Column(name="entrydate", type="datetime", nullable=false)
*/
private $entrydate;
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set location.
*
* @param string $location
*
* @return Weather
*/
public function setLocation($location)
{
$this->location = $location;
return $this;
}
/**
* Get location.
*
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Set day.
*
* @param \DateTime $day
*
* @return Weather
*/
public function setDay($day)
{
$this->day = $day;
return $this;
}
/**
* Get day.
*
* @return \DateTime
*/
public function getDay()
{
return $this->day;
}
/**
* Set temperature.
*
* @param float $temperature
*
* @return Weather
*/
public function setTemperature($temperature)
{
$this->temperature = $temperature;
return $this;
}
/**
* Get temperature.
*
* @return float
*/
public function getTemperature()
{
return $this->temperature;
}
/**
* Set state.
*
* @param string $state
*
* @return Weather
*/
public function setState($state)
{
$this->state = $state;
return $this;
}
/**
* Get state.
*
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* Set icon.
*
* @param string $icon
*
* @return Weather
*/
public function setIcon($icon)
{
$this->icon = $icon;
return $this;
}
/**
* Get icon.
*
* @return string
*/
public function getIcon()
{
return $this->icon;
}
/**
* Set forecast.
*
* @param string $forecast
*
* @return Weather
*/
public function setForecast($forecast)
{
$this->forecast = $forecast;
return $this;
}
/**
* Get forecast.
*
* @return string
*/
public function getForecast()
{
return $this->forecast;
}
/**
* Set entrydate.
*
* @param \DateTime $entrydate
*
* @return Weather
*/
public function setEntrydate($entrydate)
{
$this->entrydate = $entrydate;
return $this;
}
/**
* Get entrydate.
*
* @return \DateTime
*/
public function getEntrydate()
{
return $this->entrydate;
}
/**
* Set isday.
*
* @param bool $isday
*
* @return Weather
*/
public function setIsday($isday)
{
$this->isday = $isday;
return $this;
}
/**
* Get isday.
*
* @return bool
*/
public function getIsday()
{
return $this->isday;
}
}