ElementApi
extends Bioapi
in package
implements
ElementApiAdapter
Database of elements
Tags
Table of Contents
Interfaces
- ElementApiAdapter
- Database of elements
Properties
- $apiKey : string|null
- $bioapiClient : Client
- $serializer : Serializer
Methods
- __construct() : mixed
- Bioapi constructor.
- getElement() : ElementDTO
- Gets a single element from API
- getElements() : array<string|int, mixed>
- Gets the list of objects from Api
- GetElementsArray() : array<string|int, mixed>
- Gets the list of elements weights
Properties
$apiKey
protected
string|null
$apiKey
= null
$bioapiClient
protected
Client
$bioapiClient
$serializer
protected
Serializer
$serializer
= null
Methods
__construct()
Bioapi constructor.
public
__construct(Client $bioapiClient, Serializer $serializer[, string $apiKey = null ]) : mixed
Parameters
- $bioapiClient : Client
- $serializer : Serializer
- $apiKey : string = null
getElement()
Gets a single element from API
public
getElement(int $iElement) : ElementDTO
Parameters
- $iElement : int
Return values
ElementDTOgetElements()
Gets the list of objects from Api
public
getElements() : array<string|int, mixed>
Return values
array<string|int, mixed>GetElementsArray()
Gets the list of elements weights
public
static GetElementsArray(array<string|int, mixed> $aElements) : array<string|int, mixed>
Parameters
- $aElements : array<string|int, mixed>