PHP 클래스 Larabros\Elogram\Http\Clients\AbstractAdapter

저자: Hassan Khan ([email protected])
상속: implements Larabros\Elogram\Http\Clients\AdapterInterface
파일 보기 프로젝트 열기: larabros/elogram

공개 메소드들

메소드 설명
paginate ( Response $response, $limit = null ) {@inheritDoc}
request ( $method, $uri, array $parameters = [] ) {@inheritDoc}

보호된 메소드들

메소드 설명
resolveExceptionClass ( GuzzleHttp\Exception\ClientException $exception ) : Larabros\Elogram\Exceptions\Exception Parses a ClientException for any specific exceptions thrown by the API in the response body. If the response body is not in JSON format, an Exception is returned.

메소드 상세

paginate() 공개 메소드

{@inheritDoc}
public paginate ( Response $response, $limit = null )
$response Larabros\Elogram\Http\Response

request() 추상적인 공개 메소드

{@inheritDoc}
abstract public request ( $method, $uri, array $parameters = [] )
$parameters array

resolveExceptionClass() 보호된 메소드

Check a ClientException to see if it has an associated ResponseInterface object.
protected resolveExceptionClass ( GuzzleHttp\Exception\ClientException $exception ) : Larabros\Elogram\Exceptions\Exception
$exception GuzzleHttp\Exception\ClientException
리턴 Larabros\Elogram\Exceptions\Exception