PHP 클래스 Njasm\Soundcloud\Request\Request

저자: Nelson J Morais ([email protected])
상속: implements Njasm\Soundcloud\Request\RequestInterface
파일 보기 프로젝트 열기: njasm/soundcloud 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Njasm\Soundcloud\Resource\ResourceInterface $resource, Njasm\Soundcloud\UrlBuilder\UrlBuilderInterface $urlBuilder, Njasm\Soundcloud\Factory\FactoryInterface $factory )
asJson ( ) : Request
asXml ( ) : Request
exec ( ) : Njasm\Soundcloud\Request\ResponseInterface
getOptions ( ) : array
getUserAgent ( ) : string
setOptions ( array $options ) : Request

보호된 메소드들

메소드 설명
buildDefaultHeaders ( )
getBodyContent ( )

메소드 상세

__construct() 공개 메소드

public __construct ( Njasm\Soundcloud\Resource\ResourceInterface $resource, Njasm\Soundcloud\UrlBuilder\UrlBuilderInterface $urlBuilder, Njasm\Soundcloud\Factory\FactoryInterface $factory )
$resource Njasm\Soundcloud\Resource\ResourceInterface
$urlBuilder Njasm\Soundcloud\UrlBuilder\UrlBuilderInterface
$factory Njasm\Soundcloud\Factory\FactoryInterface

asJson() 공개 메소드

또한 보기: https://github.com/njasm/soundcloud/issues/16
사용 중단: Soundcloud does not support XML responses anymore and calling this method is redundant.
public asJson ( ) : Request
리턴 Request

asXml() 공개 메소드

또한 보기: https://github.com/njasm/soundcloud/issues/16
사용 중단: Soundcloud does not support XML responses anymore.
public asXml ( ) : Request
리턴 Request

buildDefaultHeaders() 보호된 메소드

protected buildDefaultHeaders ( )

exec() 공개 메소드

public exec ( ) : Njasm\Soundcloud\Request\ResponseInterface
리턴 Njasm\Soundcloud\Request\ResponseInterface

getBodyContent() 보호된 메소드

protected getBodyContent ( )

getOptions() 공개 메소드

public getOptions ( ) : array
리턴 array

getUserAgent() 공개 메소드

public getUserAgent ( ) : string
리턴 string the User-Agent string

setOptions() 공개 메소드

public setOptions ( array $options ) : Request
$options array
리턴 Request