array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'class.componere-patch.php', 1 => 'Componere\\Patch', ), 'up' => array ( 0 => 'book.componere.php', 1 => 'Componere', ), 'prev' => array ( 0 => 'componere-definition.getclosures.php', 1 => 'Componere\\Definition::getClosures', ), 'next' => array ( 0 => 'componere-patch.construct.php', 1 => 'Componere\\Patch::__construct', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/componere/componere.patch.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.componere-patch.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(Componere 2 >= 2.1.0)
The Patch class allows the programmer to change the type of an instance at runtime without registering a new Definition
When a Patch is destroyed it is reverted, so that instances that were patched during the lifetime of the Patch are restored to their formal type.