PHP 클래스 LeagueWrap\Client

상속: implements leaguewrap\ClientInterface
파일 보기 프로젝트 열기: paquettg/leaguewrap

보호된 프로퍼티들

프로퍼티 타입 설명
$guzzle
$timeout

공개 메소드들

메소드 설명
addMock ( GuzzleHttp\HandlerStack $mock ) : void Attempt to add a mocked handler stack to guzzle, primary usage is to be able to test this code.
baseUrl ( string $url ) : void Sets the base url to be used for future requests.
request ( string $path, array $params = [] ) : Response Attempts to do a request of the given path.
setTimeout ( integer $seconds ) : void Set a timeout in seconds for how long we will wait for the server to respond. If the server does not respond within the set number of seconds we throw an exception.

비공개 메소드들

메소드 설명
buildGuzzle ( $url, $handler = null )

메소드 상세

addMock() 공개 메소드

Attempt to add a mocked handler stack to guzzle, primary usage is to be able to test this code.
public addMock ( GuzzleHttp\HandlerStack $mock ) : void
$mock GuzzleHttp\HandlerStack
리턴 void

baseUrl() 공개 메소드

Sets the base url to be used for future requests.
public baseUrl ( string $url ) : void
$url string
리턴 void

request() 공개 메소드

Attempts to do a request of the given path.
public request ( string $path, array $params = [] ) : Response
$path string
$params array
리턴 Response

setTimeout() 공개 메소드

Set a timeout in seconds for how long we will wait for the server to respond. If the server does not respond within the set number of seconds we throw an exception.
public setTimeout ( integer $seconds ) : void
$seconds integer
리턴 void

프로퍼티 상세

$guzzle 보호되어 있는 프로퍼티

protected $guzzle

$timeout 보호되어 있는 프로퍼티

protected $timeout