Menu

## Signed
in package
implements Serializable

Signed.php : 9

### Table of Contents

#### Interfaces

Serializable

#### Properties

$signer : Signer|null
  The signer that will sign and verify the closure's signature.
$closure : Closure
  The closure to be serialized/unserialized.

#### Methods

__construct() : void
  Creates a new serializable closure instance.
__invoke() : mixed
  Resolve the closure with the given arguments.
__serialize() : array<string|int, mixed>
  Get the serializable representation of the closure.
__unserialize() : void
  Restore the closure after serialization.
getClosure() : Closure
  Gets the closure.

### Properties

#### $signer

Signed.php : 16

The signer that will sign and verify the closure's signature.

`public static Signer|null $signer`

#### $closure

Signed.php : 23

The closure to be serialized/unserialized.

`protected Closure $closure`

### Methods

#### __construct()

Signed.php : 31

Creates a new serializable closure instance.

`public __construct(Closure $closure) : void`

##### Parameters

$closure : Closure

#### __invoke()

Signed.php : 41

Resolve the closure with the given arguments.

`public __invoke() : mixed`

#### __serialize()

Signed.php : 61

Get the serializable representation of the closure.

`public __serialize() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### __unserialize()

Signed.php : 80

Restore the closure after serialization.

`public __unserialize(array<string|int, mixed> $signature) : void`

##### Parameters

$signature : array<string|int, mixed>

##### Tags

throws
  InvalidSignatureException

#### getClosure()

Signed.php : 51

Gets the closure.

`public getClosure() : Closure`

##### Return values

Closure

## Search results