<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Patch Construction</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="class.componere-patch.html">Componere\Patch</a></div> <div class="next" style="text-align: right; float: right;"><a href="componere-patch.apply.html">Componere\Patch::apply</a></div> <div class="up"><a href="class.componere-patch.html">Componere\Patch</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="componere-patch.construct" class="refentry"> <div class="refnamediv"> <h1 class="refname">Componere\Patch::__construct</h1> <p class="verinfo">(Componere 2 >= 2.1.0)</p><p class="refpurpose"><span class="refname">Componere\Patch::__construct</span> — <span class="dc-title">Patch Construction</span></p> </div> <div class="refsect1 description" id="refsect1-componere-patch.construct-description"> <h3 class="title">Description</h3> <div class="constructorsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>Componere\Patch::__construct</strong></span> ( <span class="methodparam"><span class="type">object</span> <code class="parameter">$instance</code></span> )</div> <div class="constructorsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>Componere\Patch::__construct</strong></span> ( <span class="methodparam"><span class="type">object</span> <code class="parameter">$instance</code></span> , <span class="methodparam"><span class="type">array</span> <code class="parameter">$interfaces</code></span> )</div> </div> <div class="refsect1 parameters" id="refsect1-componere-patch.construct-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <code class="parameter">instance</code></dt> <dd> <p class="para"> The target for this Patch </p> </dd> <dt> <code class="parameter">interfaces</code></dt> <dd> <p class="para"> A case insensitive array of class names </p> </dd> </dl> </div> <div class="refsect1 exceptions" id="refsect1-componere-patch.construct-exceptions"> <h3 class="title">Exceptions</h3> <div class="warning"><strong class="warning">Warning</strong> <p class="para"> Shall throw <span class="type"><a href="class.runtimeexception.html" class="type RuntimeException">RuntimeException</a></span> if a class in <code class="parameter">interfaces</code> cannot be found </p> </div> <div class="warning"><strong class="warning">Warning</strong> <p class="para"> Shall throw <span class="type"><a href="class.runtimeexception.html" class="type RuntimeException">RuntimeException</a></span> if an class in <code class="parameter">interfaces</code> is not an interface </p> </div> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="class.componere-patch.html">Componere\Patch</a></div> <div class="next" style="text-align: right; float: right;"><a href="componere-patch.apply.html">Componere\Patch::apply</a></div> <div class="up"><a href="class.componere-patch.html">Componere\Patch</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>