You are here

private function Snapshot::canBeSerialized in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/global-state/src/Snapshot.php \SebastianBergmann\GlobalState\Snapshot::canBeSerialized()

@todo Implement this properly

Parameters

mixed $variable:

Return value

boolean

2 calls to Snapshot::canBeSerialized()
Snapshot::snapshotGlobals in vendor/sebastian/global-state/src/Snapshot.php
Creates a snapshot of all global and super-global variables.
Snapshot::snapshotStaticAttributes in vendor/sebastian/global-state/src/Snapshot.php
Creates a snapshot of all static attributes in user-defined classes.

File

vendor/sebastian/global-state/src/Snapshot.php, line 440

Class

Snapshot
A snapshot of global state.

Namespace

SebastianBergmann\GlobalState

Code

private function canBeSerialized($variable) {
  return !$variable instanceof Closure;
}