Skip to content

Commit

Permalink
Make properties of Coordinates readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
jsor committed Jan 20, 2022
1 parent 2d7210b commit da124bc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Coordinates.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@

namespace GeoIO;

/**
* @psalm-immutable
*/
final class Coordinates
{
public function __construct(
public float $x,
public float $y,
public ?float $z = null,
public ?float $m = null,
public readonly float $x,
public readonly float $y,
public readonly ?float $z = null,
public readonly ?float $m = null,
) {
}
}

0 comments on commit da124bc

Please sign in to comment.