Skip to content

Commit

Permalink
Merge pull request #7 from luft-jetzt/nullable-tag
Browse files Browse the repository at this point in the history
Nullable tag
  • Loading branch information
maltehuebner authored Jul 18, 2024
2 parents 70b9ffb + ed1e83e commit fae0c29
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
24 changes: 12 additions & 12 deletions src/Model/Station.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function getStationCode(): ?string
return $this->stationCode;
}

public function setStationCode(string $stationCode): Station
public function setStationCode(string $stationCode): self
{
$this->stationCode = $stationCode;

Expand All @@ -35,7 +35,7 @@ public function getUbaStationId(): ?int
return $this->ubaStationId;
}

public function setUbaStationId(int $ubaStationId): Station
public function setUbaStationId(int $ubaStationId): self
{
$this->ubaStationId = $ubaStationId;

Expand All @@ -47,7 +47,7 @@ public function getLatitude(): ?float
return $this->latitude;
}

public function setLatitude(float $latitude): Station
public function setLatitude(float $latitude): self
{
$this->latitude = $latitude;

Expand All @@ -59,7 +59,7 @@ public function getLongitude(): ?float
return $this->longitude;
}

public function setLongitude(float $longitude): Station
public function setLongitude(float $longitude): self
{
$this->longitude = $longitude;

Expand All @@ -71,14 +71,14 @@ public function getTitle(): ?string
return $this->title;
}

public function setTitle(string $title = null): Station
public function setTitle(string $title = null): self
{
$this->title = $title;

return $this;
}

public function setCity(string $cityName = null): Station
public function setCity(string $cityName = null): self
{
$this->cityName = $cityName;

Expand All @@ -95,7 +95,7 @@ public function getFromDate(): ?\DateTime
return $this->fromDate;
}

public function setFromDate(\DateTime $fromDate = null): Station
public function setFromDate(\DateTime $fromDate = null): self
{
$this->fromDate = $fromDate;

Expand All @@ -107,7 +107,7 @@ public function getUntilDate(): ?\DateTime
return $this->untilDate;
}

public function setUntilDate(\DateTime $untilDate = null): Station
public function setUntilDate(\DateTime $untilDate = null): self
{
$this->untilDate = $untilDate;

Expand All @@ -119,7 +119,7 @@ public function getAltitude(): ?int
return $this->altitude;
}

public function setAltitude(int $altitude): Station
public function setAltitude(int $altitude): self
{
$this->altitude = $altitude;

Expand All @@ -131,7 +131,7 @@ public function getStationType(): ?string
return $this->stationType;
}

public function setStationType(string $stationType = null): Station
public function setStationType(string $stationType = null): self
{
$this->stationType = $stationType;

Expand All @@ -143,7 +143,7 @@ public function getAreaType(): ?string
return $this->areaType;
}

public function setAreaType(string $areaType = null): Station
public function setAreaType(string $areaType = null): self
{
$this->areaType = $areaType;

Expand All @@ -155,7 +155,7 @@ public function getProvider(): ?string
return $this->provider;
}

public function setProvider(string $provider): Station
public function setProvider(string $provider): self
{
$this->provider = $provider;

Expand Down
10 changes: 5 additions & 5 deletions src/Model/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function getStationCode(): ?string
return $this->stationCode;
}

public function setStationCode(string $stationCode): Value
public function setStationCode(string $stationCode): self
{
$this->stationCode = $stationCode;

Expand All @@ -32,7 +32,7 @@ public function getDateTime(): ?\DateTime
return $this->dateTime;
}

public function setDateTime(\DateTime $dateTime): Value
public function setDateTime(\DateTime $dateTime): self
{
$this->dateTime = $dateTime;

Expand All @@ -44,7 +44,7 @@ public function getValue(): ?float
return $this->value;
}

public function setValue(float $value): Value
public function setValue(float $value): self
{
$this->value = $value;

Expand All @@ -56,7 +56,7 @@ public function getPollutant(): ?string
return $this->pollutant;
}

public function setPollutant(string $pollutant): Value
public function setPollutant(string $pollutant): self
{
$this->pollutant = $pollutant;

Expand All @@ -68,7 +68,7 @@ public function getTag(): ?string
return $this->tag;
}

public function setTag(string $tag): Value
public function setTag(?string $tag = null): self
{
$this->tag = $tag;

Expand Down

0 comments on commit fae0c29

Please sign in to comment.