PHP 클래스 LeagueWrap\StaticOptimizer

파일 보기 프로젝트 열기: paquettg/leaguewrap 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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