The Componere\Patch class

(Componere 2 >= 2.1.0)

简介

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.

类摘要

finalclassComponere\PatchextendsComponere\Abstract\Definition {
public__construct(object$instance)
public__construct(object$instance, array$interfaces)
publicapply(): void
publicrevert(): void
publicisApplied(): bool
publicderive(object$instance): Patch
}

目录

To Top