PHP Класс LeagueWrap\StaticOptimizer

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$fields Holds all the raw field data to be used to get the correct data from any given hash.
$requests Stores the groups of requests that are grouped by static source.
$results Keep the results from the requests in $requests.

Открытые методы

Метод Описание
getDataFromHash ( string $hash ) : array Gets the result data array from the static api by the given hash.
optimizeFields ( array $fields ) Takes all the fields and optimizes them in the $requests array.
setStaticInfo ( Staticdata $staticData ) : void Uses the static api to get all the static information we need that have already been optimized.

Описание методов

getDataFromHash() публичный Метод

Gets the result data array from the static api by the given hash.
public getDataFromHash ( string $hash ) : array
$hash string
Результат array

optimizeFields() публичный Метод

Takes all the fields and optimizes them in the $requests array.
public optimizeFields ( array $fields )
$fields array

setStaticInfo() публичный Метод

Uses the static api to get all the static information we need that have already been optimized.
public setStaticInfo ( Staticdata $staticData ) : void
$staticData LeagueWrap\Api\Staticdata
Результат void

Описание свойств

$fields защищенное свойство

Holds all the raw field data to be used to get the correct data from any given hash.
protected $fields

$requests защищенное свойство

Stores the groups of requests that are grouped by static source.
protected $requests

$results защищенное свойство

Keep the results from the requests in $requests.
protected $results