Componere\Patch::derive
PHP function
Edit on GitHub ✎
(Componere 2 >= 2.1.1)
Patch Derivation
Description
Componere\Patch::derive(object $instance): Patch
Shall derive a Patch for the given instance
Parameters
instanceThe target for the derived Patch
Return Values
Patch for instance derived from the current Patch
Exceptions
Warning
Shall throw InvalidArgumentException if instance is not compatible