The Componere\Patch class
(Componere 2 >= 2.1.0)
Introduction
The Patch class allows the programmer to change the type of an instance at runtime without registering a new Definition
When a Patch is destroyed it is reverted, so that instances that were patched during the lifetime of the Patch are restored to their formal type.
Class synopsis
final
class Componere\Patch
extends
Componere\Abstract\Definition
{
/* Constructors */
/* Methods */
/* Inherited methods */
public function Componere\Abstract\Definition::addMethod(string
}$name, Componere\Method $method): DefinitionTable of Contents
- Componere\Patch::__construct — Patch Construction
- Componere\Patch::apply — Application
- Componere\Patch::revert — Reversal
- Componere\Patch::isApplied — State Detection
- Componere\Patch::derive — Patch Derivation
- Componere\Patch::getClosure — Get Closure
- Componere\Patch::getClosures — Get Closures
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
