\Iqrf\Repository\Entities TrSeries

TrSeries entity

Summary

Methods
Properties
Constants
__construct
fromApiResponse
jsonSerialize
series
imageUrl
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Properties

$series

$series : \Iqrf\Repository\Enums\ITrSeries

Type

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