Station
extends Out
in package
A lightweight, read-only wrapper around a single `GET /station` response (the `StationOut` schema): the co-op orbital-station blueprint + live per-module progress. Empty/dormant outside the Space era.
The schema declares no fixed fields (keys vary by era), so nothing is listed
in $fillable; the Out base still keeps every key the server sends.
Tags
Table of Contents
Properties
- $fillable : mixed
- Empty-object schema: permit any server-provided keys without hard-coding a stale or incomplete set.
Methods
- fill() : void
- Stores the full decoded payload, then applies any declared attribute mutators. Unlike the parent, keys absent from `$fillable` are preserved so the model tolerates the extra keys the NHA API is allowed to add.
- jsonSerialize() : array<string|int, mixed>
- Serialises back to the full raw payload (lossless), not just the declared subset, so round-tripping an NHA response never discards fields.
Properties
$fillable
Empty-object schema: permit any server-provided keys without hard-coding a stale or incomplete set.
protected
mixed
$fillable
= []
Methods
fill()
Stores the full decoded payload, then applies any declared attribute mutators. Unlike the parent, keys absent from `$fillable` are preserved so the model tolerates the extra keys the NHA API is allowed to add.
public
fill(array<string|int, mixed> $attributes) : void
Parameters
- $attributes : array<string|int, mixed>
-
The decoded response body.
jsonSerialize()
Serialises back to the full raw payload (lossless), not just the declared subset, so round-tripping an NHA response never discards fields.
public
jsonSerialize() : array<string|int, mixed>