You are here

public function CachedDoubler::registerClassPatch in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Doubler/CachedDoubler.php \Prophecy\Doubler\CachedDoubler::registerClassPatch()

Registers new class patch.

Parameters

ClassPatchInterface $patch:

Overrides Doubler::registerClassPatch

File

vendor/phpspec/prophecy/src/Prophecy/Doubler/CachedDoubler.php, line 29

Class

CachedDoubler
Cached class doubler. Prevents mirroring/creation of the same structure twice.

Namespace

Prophecy\Doubler

Code

public function registerClassPatch(ClassPatch\ClassPatchInterface $patch) {
  $this->classes[] = array();
  parent::registerClassPatch($patch);
}