You are here

public function Context::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/sebastian/recursion-context/src/Context.php \SebastianBergmann\RecursionContext\Context::__construct()
  2. 8 core/lib/Drupal/Core/Plugin/Context/Context.php \Drupal\Core\Plugin\Context\Context::__construct()
  3. 8 core/lib/Drupal/Component/Plugin/Context/Context.php \Drupal\Component\Plugin\Context\Context::__construct()
  4. 8 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Context.php \phpDocumentor\Reflection\DocBlock\Context::__construct()
Same name and namespace in other branches
  1. 8.0 vendor/sebastian/recursion-context/src/Context.php \SebastianBergmann\RecursionContext\Context::__construct()

Initialises the context

File

vendor/sebastian/recursion-context/src/Context.php, line 32

Class

Context
A context containing previously processed arrays and objects when recursively processing a value.

Namespace

SebastianBergmann\RecursionContext

Code

public function __construct() {
  $this->arrays = array();
  $this->objects = new \SplObjectStorage();
}