\Amelaye\BioPHP\Api ElementApi

Database of elements

Summary

Methods
Properties
Constants
getElements
getElement
GetElementsArray
__construct
No public properties found
No public constants found
No protected methods found
bioapiClient
serializer
apiKey
No protected constants found
No private methods found
No private properties found
No private constants found

Properties

$bioapiClient

$bioapiClient : \GuzzleHttp\Client

Type

Client —

$serializer

$serializer : \JMS\Serializer\Serializer

Type

Serializer —

$apiKey

$apiKey : string|null

Type

string|null —

Methods

getElements()

getElements() : array

Gets the list of objects from Api

Returns

array —

getElement()

getElement(int  $iElement) : \Amelaye\BioPHP\Api\DTO\ElementDTO

Gets a single element from API

Parameters

int $iElement

Returns

\Amelaye\BioPHP\Api\DTO\ElementDTO —

GetElementsArray()

GetElementsArray(array  $aElements) : array

Gets the list of elements weights

Parameters

array $aElements

Returns

array —

__construct()

__construct(\GuzzleHttp\Client  $bioapiClient, \JMS\Serializer\Serializer  $serializer, string  $apiKey = null) : mixed

Bioapi constructor.

Parameters

\GuzzleHttp\Client $bioapiClient
\JMS\Serializer\Serializer $serializer
string $apiKey

Returns

mixed —