PHP Class seregazhuk\PinterestBot\Api\Providers\ProviderWrapper

Exibir arquivo Open project: seregazhuk/php-pinterest-bot

Public Methods

Method Description
__call ( $method, $arguments ) : mixed | null Proxies a call to a provider with a login check before every method if needed.
__construct ( Provider $provider )

Protected Methods

Method Description
checkMethodForLoginRequired ( $method ) Checks if method requires login and if true, checks logged in status.
getErrorMethodCallMessage ( string $method, string $message ) : string

Method Details

__call() public method

Proxies a call to a provider with a login check before every method if needed.
public __call ( $method, $arguments ) : mixed | null
$method
$arguments
return mixed | null

__construct() public method

public __construct ( Provider $provider )
$provider Provider

checkMethodForLoginRequired() protected method

Checks if method requires login and if true, checks logged in status.
protected checkMethodForLoginRequired ( $method )
$method

getErrorMethodCallMessage() protected method

protected getErrorMethodCallMessage ( string $method, string $message ) : string
$method string
$message string
return string