Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Laravel\SerializableClosure\Support\ReflectionClosure Class Reference
Inheritance diagram for Laravel\SerializableClosure\Support\ReflectionClosure:

Public Member Functions

 __construct (Closure $closure, $code=null)
 
 getCode ()
 Get the closure's code.
 
 getUseVariables ()
 Gets the use variables by the closure.
 
 isBindingRequired ()
 Checks if binding is required.
 
 isScopeRequired ()
 Checks if access to the scope is required.
 
 isShortClosure ()
 Checks if the closure is a "short closure".
 
 isStatic ()
 Checks if the closure is "static".
 

Protected Member Functions

 fetchItems ()
 Fetch the items.
 
 getClasses ()
 Get the classes.
 
 getClosureNamespaceName ()
 Returns the namespace associated to the closure.
 
 getConstants ()
 Gets the constants.
 
 getFileTokens ()
 Get the file tokens.
 
 getFunctions ()
 Get the functions.
 
 getHashedFileName ()
 The the hash of the current file name.
 
 getStructures ()
 Get the structures.
 
 getTokens ()
 Get the tokens.
 
 parseNameQualified ($token)
 Parse the given token.
 

Static Protected Member Functions

static getBuiltinTypes ()
 Get PHP native built in types.
 

Protected Attributes

 $code
 
 $hashedName
 
 $isBindingRequired
 
 $isScopeRequired
 
 $isShortClosure
 
 $isStaticClosure
 
 $tokens
 
 $useVariables
 

Static Protected Attributes

static $classes = []
 
static $constants = []
 
static $files = []
 
static $functions = []
 
static $structures = []
 

Member Function Documentation

◆ fetchItems()

Laravel\SerializableClosure\Support\ReflectionClosure::fetchItems ( )
protected

Fetch the items.

Return values
void.

◆ getBuiltinTypes()

static Laravel\SerializableClosure\Support\ReflectionClosure::getBuiltinTypes ( )
staticprotected

Get PHP native built in types.

Return values
array

◆ getClasses()

Laravel\SerializableClosure\Support\ReflectionClosure::getClasses ( )
protected

Get the classes.

Return values
array

◆ getClosureNamespaceName()

Laravel\SerializableClosure\Support\ReflectionClosure::getClosureNamespaceName ( )
protected

Returns the namespace associated to the closure.

Return values
string

◆ getCode()

Laravel\SerializableClosure\Support\ReflectionClosure::getCode ( )

Get the closure's code.

Return values
string

◆ getConstants()

Laravel\SerializableClosure\Support\ReflectionClosure::getConstants ( )
protected

Gets the constants.

Return values
array

◆ getFileTokens()

Laravel\SerializableClosure\Support\ReflectionClosure::getFileTokens ( )
protected

Get the file tokens.

Return values
array

◆ getFunctions()

Laravel\SerializableClosure\Support\ReflectionClosure::getFunctions ( )
protected

Get the functions.

Return values
array

◆ getHashedFileName()

Laravel\SerializableClosure\Support\ReflectionClosure::getHashedFileName ( )
protected

The the hash of the current file name.

Return values
string

◆ getStructures()

Laravel\SerializableClosure\Support\ReflectionClosure::getStructures ( )
protected

Get the structures.

Return values
array

◆ getTokens()

Laravel\SerializableClosure\Support\ReflectionClosure::getTokens ( )
protected

Get the tokens.

Return values
array

◆ getUseVariables()

Laravel\SerializableClosure\Support\ReflectionClosure::getUseVariables ( )

Gets the use variables by the closure.

Return values
array

◆ isBindingRequired()

Laravel\SerializableClosure\Support\ReflectionClosure::isBindingRequired ( )

Checks if binding is required.

Return values
bool

◆ isScopeRequired()

Laravel\SerializableClosure\Support\ReflectionClosure::isScopeRequired ( )

Checks if access to the scope is required.

Return values
bool

◆ isShortClosure()

Laravel\SerializableClosure\Support\ReflectionClosure::isShortClosure ( )

Checks if the closure is a "short closure".

Return values
bool

◆ isStatic()

Laravel\SerializableClosure\Support\ReflectionClosure::isStatic ( )

Checks if the closure is "static".

Return values
bool

◆ parseNameQualified()

Laravel\SerializableClosure\Support\ReflectionClosure::parseNameQualified ( $token)
protected

Parse the given token.

Parameters
string$token
Return values
array

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