PHP 클래스 seregazhuk\PinterestBot\Bot

파일 보기 프로젝트 열기: seregazhuk/php-pinterest-bot 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$providersContainer seregazhuk\PinterestBot\Api\ProvidersContainer

공개 메소드들

메소드 설명
__call ( string $method, array $parameters ) : mixed All method calls are proxied to the providers container.
__construct ( ProvidersContainer $providersContainer )
__get ( string $provider ) : Provider Magic method to access different providers from the providers container.
getClientInfo ( boolean $reload = false ) : array | null Returns client context from Pinterest response. By default info returns from the last Pinterest response. If there was no response before or the argument $reload is true, we make a dummy request to the main page to update client context.

메소드 상세

__call() 공개 메소드

All method calls are proxied to the providers container.
public __call ( string $method, array $parameters ) : mixed
$method string
$parameters array
리턴 mixed

__construct() 공개 메소드

public __construct ( ProvidersContainer $providersContainer )
$providersContainer seregazhuk\PinterestBot\Api\ProvidersContainer

__get() 공개 메소드

Magic method to access different providers from the providers container.
public __get ( string $provider ) : Provider
$provider string
리턴 seregazhuk\PinterestBot\Api\Providers\Provider

getClientInfo() 공개 메소드

Returns client context from Pinterest response. By default info returns from the last Pinterest response. If there was no response before or the argument $reload is true, we make a dummy request to the main page to update client context.
public getClientInfo ( boolean $reload = false ) : array | null
$reload boolean
리턴 array | null

프로퍼티 상세

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

protected ProvidersContainer,seregazhuk\PinterestBot\Api $providersContainer
리턴 seregazhuk\PinterestBot\Api\ProvidersContainer