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
instanceThe target for this Patch
interfacesA 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