\Opis\ClosureSecurityProvider

Summary

Methods
Properties
Constants
__construct()
sign()
verify()
No public properties found
No constants found
No protected methods found
$secret
N/A
No private methods found
No private properties found
N/A

Properties

$secret

$secret : string

Type

string

Methods

__construct()

__construct(string  $secret) : mixed

SecurityProvider constructor.

Parameters

string $secret

Returns

mixed —

sign()

sign(mixed  $closure) : array

Sign serialized closure

Parameters

mixed $closure

Returns

array —

verify()

verify(array  $data) : bool

Verify signature

Parameters

array $data

Returns

bool —