Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Laravel\SerializableClosure\UnsignedSerializableClosure Class Reference

Public Member Functions

 __construct (Closure $closure)
 Creates a new serializable closure instance.
 
 __invoke ()
 Resolve the closure with the given arguments.
 
 __serialize ()
 Get the serializable representation of the closure.
 
 __unserialize ($data)
 Restore the closure after serialization.
 
 getClosure ()
 Gets the closure.
 

Protected Attributes

Laravel SerializableClosure Contracts Serializable $serializable
 

Constructor & Destructor Documentation

◆ __construct()

Laravel\SerializableClosure\UnsignedSerializableClosure::__construct ( Closure $closure)

Creates a new serializable closure instance.

Parameters
Closure$closure
Return values
void

Member Function Documentation

◆ __invoke()

Laravel\SerializableClosure\UnsignedSerializableClosure::__invoke ( )

Resolve the closure with the given arguments.

Return values
mixed

◆ __serialize()

Laravel\SerializableClosure\UnsignedSerializableClosure::__serialize ( )

Get the serializable representation of the closure.

Return values
array

◆ __unserialize()

Laravel\SerializableClosure\UnsignedSerializableClosure::__unserialize ( $data)

Restore the closure after serialization.

Parameters
array$data
Return values
void

◆ getClosure()

Laravel\SerializableClosure\UnsignedSerializableClosure::getClosure ( )

Gets the closure.

Return values
Closure

The documentation for this class was generated from the following file: