Snapshot
in package
A snapshot of global state.
Table of Contents
Properties
- $classes : array<string|int, mixed>
- $constants : array<string|int, mixed>
- $excludeList : ExcludeList
- $functions : array<string|int, mixed>
- $globalVariables : array<string|int, mixed>
- $includedFiles : array<string|int, mixed>
- $iniSettings : array<string|int, mixed>
- $interfaces : array<string|int, mixed>
- $staticAttributes : array<string|int, mixed>
- $superGlobalArrays : array<string|int, mixed>
- $superGlobalVariables : array<string|int, mixed>
- $traits : array<string|int, mixed>
Methods
- __construct() : mixed
- Creates a snapshot of the current global state.
- classes() : array<string|int, mixed>
- constants() : array<string|int, mixed>
- excludeList() : ExcludeList
- functions() : array<string|int, mixed>
- globalVariables() : array<string|int, mixed>
- includedFiles() : array<string|int, mixed>
- iniSettings() : array<string|int, mixed>
- interfaces() : array<string|int, mixed>
- staticAttributes() : array<string|int, mixed>
- superGlobalArrays() : array<string|int, mixed>
- superGlobalVariables() : array<string|int, mixed>
- traits() : array<string|int, mixed>
- canBeSerialized() : bool
- enumerateObjectsAndResources() : array<string|int, mixed>
- setupSuperGlobalArrays() : void
- Returns a list of all super-global variable arrays.
- snapshotClasses() : void
- Creates a snapshot user-defined classes.
- snapshotConstants() : void
- Creates a snapshot user-defined constants.
- snapshotFunctions() : void
- Creates a snapshot user-defined functions.
- snapshotGlobals() : void
- Creates a snapshot of all global and super-global variables.
- snapshotInterfaces() : void
- Creates a snapshot user-defined interfaces.
- snapshotStaticAttributes() : void
- Creates a snapshot of all static attributes in user-defined classes.
- snapshotSuperGlobalArray() : void
- Creates a snapshot a super-global variable array.
Properties
$classes
private
array<string|int, mixed>
$classes
= []
$constants
private
array<string|int, mixed>
$constants
= []
$excludeList
private
ExcludeList
$excludeList
$functions
private
array<string|int, mixed>
$functions
= []
$globalVariables
private
array<string|int, mixed>
$globalVariables
= []
$includedFiles
private
array<string|int, mixed>
$includedFiles
= []
$iniSettings
private
array<string|int, mixed>
$iniSettings
= []
$interfaces
private
array<string|int, mixed>
$interfaces
= []
$staticAttributes
private
array<string|int, mixed>
$staticAttributes
= []
$superGlobalArrays
private
array<string|int, mixed>
$superGlobalArrays
= []
$superGlobalVariables
private
array<string|int, mixed>
$superGlobalVariables
= []
$traits
private
array<string|int, mixed>
$traits
= []
Methods
__construct()
Creates a snapshot of the current global state.
public
__construct([ExcludeList|null $excludeList = null ][, bool $includeGlobalVariables = true ][, bool $includeStaticAttributes = true ][, bool $includeConstants = true ][, bool $includeFunctions = true ][, bool $includeClasses = true ][, bool $includeInterfaces = true ][, bool $includeTraits = true ][, bool $includeIniSettings = true ][, bool $includeIncludedFiles = true ]) : mixed
Parameters
- $excludeList : ExcludeList|null = null
- $includeGlobalVariables : bool = true
- $includeStaticAttributes : bool = true
- $includeConstants : bool = true
- $includeFunctions : bool = true
- $includeClasses : bool = true
- $includeInterfaces : bool = true
- $includeTraits : bool = true
- $includeIniSettings : bool = true
- $includeIncludedFiles : bool = true
classes()
public
classes() : array<string|int, mixed>
Return values
array<string|int, mixed>constants()
public
constants() : array<string|int, mixed>
Return values
array<string|int, mixed>excludeList()
public
excludeList() : ExcludeList
Return values
ExcludeListfunctions()
public
functions() : array<string|int, mixed>
Return values
array<string|int, mixed>globalVariables()
public
globalVariables() : array<string|int, mixed>
Return values
array<string|int, mixed>includedFiles()
public
includedFiles() : array<string|int, mixed>
Return values
array<string|int, mixed>iniSettings()
public
iniSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>interfaces()
public
interfaces() : array<string|int, mixed>
Return values
array<string|int, mixed>staticAttributes()
public
staticAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>superGlobalArrays()
public
superGlobalArrays() : array<string|int, mixed>
Return values
array<string|int, mixed>superGlobalVariables()
public
superGlobalVariables() : array<string|int, mixed>
Return values
array<string|int, mixed>traits()
public
traits() : array<string|int, mixed>
Return values
array<string|int, mixed>canBeSerialized()
private
canBeSerialized(mixed $variable) : bool
Parameters
- $variable : mixed
Return values
boolenumerateObjectsAndResources()
private
enumerateObjectsAndResources(mixed $variable) : array<string|int, mixed>
Parameters
- $variable : mixed
Return values
array<string|int, mixed>setupSuperGlobalArrays()
Returns a list of all super-global variable arrays.
private
setupSuperGlobalArrays() : void
snapshotClasses()
Creates a snapshot user-defined classes.
private
snapshotClasses() : void
snapshotConstants()
Creates a snapshot user-defined constants.
private
snapshotConstants() : void
snapshotFunctions()
Creates a snapshot user-defined functions.
private
snapshotFunctions() : void
snapshotGlobals()
Creates a snapshot of all global and super-global variables.
private
snapshotGlobals() : void
snapshotInterfaces()
Creates a snapshot user-defined interfaces.
private
snapshotInterfaces() : void
snapshotStaticAttributes()
Creates a snapshot of all static attributes in user-defined classes.
private
snapshotStaticAttributes() : void
snapshotSuperGlobalArray()
Creates a snapshot a super-global variable array.
private
snapshotSuperGlobalArray(string $superGlobalArray) : void
Parameters
- $superGlobalArray : string