| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Location extends Component |
||
| 6 | { |
||
| 7 | protected float $latitude; |
||
| 8 | protected float $longitude; |
||
| 9 | protected ?string $name; |
||
| 10 | protected ?string $address; |
||
| 11 | |||
| 12 | public function __construct(float $latitude, float $longitude, ?string $name = null, ?string $address = null) |
||
| 18 | } |
||
| 19 | |||
| 20 | public function toArray(): array |
||
| 43 |