PHP Class seregazhuk\PinterestBot\Api\Providers\ProviderWrapper

Afficher le fichier Open project: seregazhuk/php-pinterest-bot

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

__construct() public méthode

public __construct ( Provider $provider )
$provider Provider

checkMethodForLoginRequired() protected méthode

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

getErrorMethodCallMessage() protected méthode

protected getErrorMethodCallMessage ( string $method, string $message ) : string
$method string
$message string
Résultat string