\AppBundle\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

string|null

Methods

__construct()

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

Bioapi constructor.

Parameters

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

getElements()

getElements() : array

Gets the list of objects from Api

Returns

array

getElement()

getElement(integer  $iElement) : \AppBundle\Api\DTO\ElementDTO

Gets a single element from API

Parameters

integer $iElement

Returns

\AppBundle\Api\DTO\ElementDTO

GetElementsArray()

GetElementsArray(array  $aElements) : array

Gets the list of elements weights

Parameters

array $aElements

Returns

array