\Iqrf\Repository\EntitiesTrSeries

TrSeries entity

Summary

Methods
Properties
Constants
__construct()
fromApiResponse()
jsonSerialize()
$series
$imageUrl
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$series

$series : \Iqrf\Repository\Enums\ITrSeries

Type

\Iqrf\Repository\Enums\ITrSeries

$imageUrl

$imageUrl : string

Type

string

Methods

__construct()

__construct(\Iqrf\Repository\Enums\ITrSeries  $series, string  $imageUrl) : mixed

Constructor

Parameters

\Iqrf\Repository\Enums\ITrSeries $series

TR series

string $imageUrl

Image URL

Returns

mixed —

fromApiResponse()

fromApiResponse(array{seriesMIcode: int, mcuMIcode: int, seriesImage: string}  $response) : self

Creates a new TrSeries entity from API response

Parameters

array{seriesMIcode: int, mcuMIcode: int, seriesImage: string} $response

API response body

Returns

self —

jsonSerialize()

jsonSerialize() : array{value: int, name: string, imageUrl: string}

Serializes the TrSeries entity into JSON

Returns

array{value: int, name: string, imageUrl: string} —

JSON serialized TrSeries entity