Documentation

ElementApi extends Bioapi
in package
implements ElementApiAdapter

Database of elements

Tags
author

Amélie DUVERNET aka Amelaye amelieonline@gmail.com

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

getElements()

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>
Return values
array<string|int, mixed>
On this page

Search results