\EasyWeChat\OpenPlatformVerifyTicket

Summary

Methods
Properties
Constants
__construct()
setTicket()
getTicket()
setCacheKey()
getCacheKey()
No public properties found
No constants found
No protected methods found
$cache
$appId
$prefix
N/A
No private methods found
$cacheKey
N/A

Properties

$appId

$appId : string

App Id.

Type

string

$prefix

$prefix : string

Cache key prefix.

Type

string

$cacheKey

$cacheKey : string

Cache Key.

Type

string

Methods

__construct()

__construct(string  $appId, \Doctrine\Common\Cache\Cache  $cache) 

VerifyTicket constructor.

Parameters

string $appId
\Doctrine\Common\Cache\Cache $cache

setTicket()

setTicket(string  $ticket) : boolean

Set component verify ticket to the cache.

Parameters

string $ticket

Returns

boolean

getTicket()

getTicket() : string

Get component verify ticket.

Throws

\EasyWeChat\Core\Exceptions\RuntimeException

Returns

string

setCacheKey()

setCacheKey(string  $cacheKey) : $this

Set component verify ticket cache key.

Parameters

string $cacheKey

Returns

$this

getCacheKey()

getCacheKey() : string

Get component verify ticket cache key.

Returns

string —

$this->cacheKey