Contracts
extends Out
in package
A lightweight, read-only wrapper around a single `GET /contracts` response (the `ContractsOut` schema): supply contracts and kill bounties.
Tags
Table of Contents
Properties
- $bounties : array<string|int, mixed>
- $fulfilled : array<string|int, mixed>
- $open : array<string|int, mixed>
- $fillable : mixed
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
$bounties
public
array<string|int, mixed>
$bounties
Open kill bounties.
$fulfilled
public
array<string|int, mixed>
$fulfilled
Recently fulfilled contracts.
$open
public
array<string|int, mixed>
$open
Open supply contracts.
$fillable
protected
mixed
$fillable
= ['open', 'fulfilled', 'bounties']
Tags
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>