\Amelaye\BioPHP\ApiElementApi

Database of elements

Summary

Methods
Properties
Constants
__construct()
getElements()
getElement()
GetElementsArray()
No public properties found
No constants found
No protected methods found
$bioapiClient
$serializer
$apiKey
N/A
No private methods found
No private properties found
N/A

Properties

$bioapiClient

$bioapiClient : \GuzzleHttp\Client

Type

\GuzzleHttp\Client

$serializer

$serializer : \JMS\Serializer\Serializer

Type

\JMS\Serializer\Serializer

$apiKey

$apiKey : string|null

Type

normal

Methods

__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

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