OfferLinksResponse
in package
HAL navigation links for offer resources
This response contains hypermedia links following the HAL (Hypertext Application Language) specification for navigating between offer-related resources in the Horizon API. Each link provides a URL to fetch additional information about the offer or related entities.
Available links:
- self: Link to this offer's detail endpoint
- offer_maker: Link to the account that created the offer
Tags
Table of Contents
Methods
- fromJson() : OfferLinksResponse
- Creates an OfferLinksResponse from JSON data
- getOfferMaker() : LinkResponse
- Gets the link to the account that created this offer
- getSelf() : LinkResponse
- Gets the link to this offer's detail endpoint
- loadFromJson() : void
Methods
fromJson()
Creates an OfferLinksResponse from JSON data
public
static fromJson(array<string|int, mixed> $json) : OfferLinksResponse
Parameters
- $json : array<string|int, mixed>
-
Associative array of parsed JSON response
Return values
OfferLinksResponse —The populated links response
getOfferMaker()
Gets the link to the account that created this offer
public
getOfferMaker() : LinkResponse
Return values
LinkResponse —The offer maker account link
getSelf()
Gets the link to this offer's detail endpoint
public
getSelf() : LinkResponse
Return values
LinkResponse —The self link
loadFromJson()
protected
loadFromJson(array<string|int, mixed> $json) : void
Parameters
- $json : array<string|int, mixed>