Skip to content

Commit

Permalink
Change the data type of the pressure value.
Browse files Browse the repository at this point in the history
  • Loading branch information
mohit-rocks committed Mar 6, 2024
1 parent 8b7ed2a commit f513579
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Observation/Pressure.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ final class Pressure {
/**
* The pressure, in hectopascals.
*/
protected ?int $pressure = NULL;
protected ?float $pressure = NULL;

/**
* Gets the pressure in hectopascals.
*/
public function getPressure(): ?int {
public function getPressure(): ?float {
return $this->pressure;
}

/**
* Sets the pressure in hectopascals.
*/
public function setPressure(?int $pressure): Pressure {
public function setPressure(?float $pressure): Pressure {
$this->pressure = $pressure;
return $this;
}
Expand Down

0 comments on commit f513579

Please sign in to comment.