Please wait while we load your page...

PasswordSentry

Latest Version [8.00202205221] Last Updated [May-22-2022]

Tools

PHP Manual [The Componere\Patch class]

Protect Your Website Today


PHP Manual || Componere

(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.

final Componere\Patch extends Componere\Abstract\Definition {
/* Constructors */
public __construct ( object $instance )
public __construct ( object $instance , array $interfaces )
/* Methods */
public apply ( void ) : void
public revert ( void ) : void
public isApplied ( void ) : bool
public derive ( object $instance ) : Patch
public getClosure ( string $name ) : \Closure
public getClosures ( void ) : array
/* Inherited methods */
public Componere\Abstract\Definition::addInterface ( string $interface ) : Definition
public Componere\Abstract\Definition::addMethod ( string $name , \Componere\Method $method ) : Definition
public Componere\Abstract\Definition::addTrait ( string $trait ) : Definition
public Componere\Abstract\Definition::getReflector ( void ) : \ReflectionClass
}


PHP Manual || Componere