php8.5
Home/ Manual/ componere / patch/ Componere\Patch::__construct

Componere\Patch::__construct

PHP function Edit on GitHub ✎

(Componere 2 >= 2.1.0)

Patch Construction

Description

Componere\Patch::__construct(object $instance)
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

Source: reference/componere/componere/patch/construct.xml · from the official PHP manual (php/doc-en)