src/Entity/Weather.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\WeatherRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassWeatherRepository::class)]
  6. #[ORM\Table(name"weather")]
  7. class Weather
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type"integer")]
  12.     private $id;
  13.     #[ORM\Column(type"datetime"nullabletrue)]
  14.     private $date;
  15.     #[ORM\Column(type"integer"nullabletrue)]
  16.     private $time;
  17.     #[ORM\Column(type"string"length255nullabletrue)]
  18.     private $weather;
  19.     #[ORM\Column(type"string"length255nullabletrue)]
  20.     private $location;
  21.     #[ORM\Column(type"string"length255nullabletrue)]
  22.     private $rain;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getDate(): ?\DateTimeInterface
  28.     {
  29.         return $this->date;
  30.     }
  31.     public function setDate(?\DateTimeInterface $date): self
  32.     {
  33.         $this->date $date;
  34.         return $this;
  35.     }
  36.     public function getTime(): ?int
  37.     {
  38.         return $this->time;
  39.     }
  40.     public function setTime(?int $time): self
  41.     {
  42.         $this->time $time;
  43.         return $this;
  44.     }
  45.     public function getWeather(): ?string
  46.     {
  47.         return $this->weather;
  48.     }
  49.     public function setWeather(?string $weather): self
  50.     {
  51.         $this->weather $weather;
  52.         return $this;
  53.     }
  54.     public function getLocation(): ?string
  55.     {
  56.         return $this->location;
  57.     }
  58.     public function setLocation(?string $location): self
  59.     {
  60.         $this->location $location;
  61.         return $this;
  62.     }
  63.     public function getRain(): ?string
  64.     {
  65.         return $this->rain;
  66.     }
  67.     public function setRain(?string $rain): self
  68.     {
  69.         $this->rain $rain;
  70.         return $this;
  71.     }
  72. }