Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Componere\PatchComponere\Patch::apply>
^Componere\PatchLast updated: Mon, 26 Oct 2026

Componere\Patch::__construct

(Componere 2 >= 2.1.0)

Componere\Patch::__construct — Patch Construction

Description

public function Componere\Patch::__construct(object $instance)
public function Componere\Patch::__construct(object $instance, array $interfaces)

Parameters

instance

The target for this Patch

interfaces

A case insensitive array of class names

Exceptions

Warning

Shall throw RuntimeException if a class in interfaces cannot be found

Warning

Shall throw RuntimeException if a class in interfaces is not an interface


<Componere\PatchComponere\Patch::apply>
^Componere\PatchLast updated: Mon, 26 Oct 2026