Menu

## ReflectionClosure extends ReflectionFunction
in package

ReflectionClosure.php : 13

### Table of Contents

#### Properties

$classes : mixed
$code : mixed
$constants : mixed
$files : mixed
$functions : mixed
$hashedName : mixed
$isBindingRequired : mixed
$isScopeRequired : mixed
$isShortClosure : mixed
$isStaticClosure : mixed
$structures : mixed
$tokens : mixed
$useVariables : mixed

#### Methods

__construct() : void
  Creates a new reflection closure instance.
getCode() : string
  Get the closure's code.
getUseVariables() : array<string|int, mixed>
  Gets the use variables by the closure.
isBindingRequired() : bool
  Checks if binding is required.
isScopeRequired() : bool
  Checks if access to the scope is required.
isShortClosure() : bool
  Checks if the closure is a "short closure".
isStatic() : bool
  Checks if the closure is "static".
fetchItems() : void
  Fetch the items.
getBuiltinTypes() : array<string|int, mixed>
  Get PHP native built in types.
getClasses() : array<string|int, mixed>
  Get the classes.
getClosureNamespaceName() : string
  Returns the namespace associated to the closure.
getConstants() : array<string|int, mixed>
  Gets the constants.
getFileTokens() : array<string|int, mixed>
  Get the file tokens.
getFunctions() : array<string|int, mixed>
  Get the functions.
getHashedFileName() : string
  The the hash of the current file name.
getStructures() : array<string|int, mixed>
  Get the structures.
getTokens() : array<string|int, mixed>
  Get the tokens.
parseNameQualified() : array<string|int, mixed>
  Parse the given token.

### Properties

#### $classes

ReflectionClosure.php : 25
`protected static mixed $classes = []`

#### $code

ReflectionClosure.php : 15
`protected mixed $code`

#### $constants

ReflectionClosure.php : 27
`protected static mixed $constants = []`

#### $files

ReflectionClosure.php : 24
`protected static mixed $files = []`

#### $functions

ReflectionClosure.php : 26
`protected static mixed $functions = []`

#### $hashedName

ReflectionClosure.php : 17
`protected mixed $hashedName`

#### $isBindingRequired

ReflectionClosure.php : 21
`protected mixed $isBindingRequired`

#### $isScopeRequired

ReflectionClosure.php : 20
`protected mixed $isScopeRequired`

#### $isShortClosure

ReflectionClosure.php : 22
`protected mixed $isShortClosure`

#### $isStaticClosure

ReflectionClosure.php : 19
`protected mixed $isStaticClosure`

#### $structures

ReflectionClosure.php : 28
`protected static mixed $structures = []`

#### $tokens

ReflectionClosure.php : 16
`protected mixed $tokens`

#### $useVariables

ReflectionClosure.php : 18
`protected mixed $useVariables`

### Methods

#### __construct()

ReflectionClosure.php : 37

Creates a new reflection closure instance.

`public __construct(Closure $closure[, string|null $code = null ]) : void`

##### Parameters

$closure : Closure
$code : string|null = null

#### getCode()

ReflectionClosure.php : 81

Get the closure's code.

`public getCode() : string`

##### Return values

string

#### getUseVariables()

ReflectionClosure.php : 744

Gets the use variables by the closure.

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

##### Return values

array<string|int, mixed>

#### isBindingRequired()

ReflectionClosure.php : 785

Checks if binding is required.

`public isBindingRequired() : bool`

##### Return values

bool

#### isScopeRequired()

ReflectionClosure.php : 799

Checks if access to the scope is required.

`public isScopeRequired() : bool`

##### Return values

bool

#### isShortClosure()

ReflectionClosure.php : 61

Checks if the closure is a "short closure".

`public isShortClosure() : bool`

##### Return values

bool

#### isStatic()

ReflectionClosure.php : 47

Checks if the closure is "static".

`public isStatic() : bool`

##### Return values

bool

#### fetchItems()

ReflectionClosure.php : 950

Fetch the items.

`protected fetchItems() : void`

#### getBuiltinTypes()

ReflectionClosure.php : 716

Get PHP native built in types.

`protected static getBuiltinTypes() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### getClasses()

ReflectionClosure.php : 886

Get the classes.

`protected getClasses() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### getClosureNamespaceName()

ReflectionClosure.php : 1168

Returns the namespace associated to the closure.

`protected getClosureNamespaceName() : string`

##### Return values

string

#### getConstants()

ReflectionClosure.php : 918

Gets the constants.

`protected getConstants() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### getFileTokens()

ReflectionClosure.php : 827

Get the file tokens.

`protected getFileTokens() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### getFunctions()

ReflectionClosure.php : 902

Get the functions.

`protected getFunctions() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### getHashedFileName()

ReflectionClosure.php : 813

The the hash of the current file name.

`protected getHashedFileName() : string`

##### Return values

string

#### getStructures()

ReflectionClosure.php : 934

Get the structures.

`protected getStructures() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### getTokens()

ReflectionClosure.php : 843

Get the tokens.

`protected getTokens() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### parseNameQualified()

ReflectionClosure.php : 1186

Parse the given token.

`protected parseNameQualified(string $token) : array<string|int, mixed>`

##### Parameters

$token : string

##### Return values

array<string|int, mixed>

## Search results