<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.componere.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'intro.componere.php',
    1 => 'Вступ',
    2 => 'Вступ',
  ),
  'up' => 
  array (
    0 => 'book.componere.php',
    1 => 'Componere',
  ),
  'prev' => 
  array (
    0 => 'book.componere.php',
    1 => 'Componere',
  ),
  'next' => 
  array (
    0 => 'componere.setup.php',
    1 => 'Встановлення/налаштування',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/componere/book.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intro.componere" class="preface">
  <h1 class="title">Вступ</h1>
  <p class="para">
   Componere <sub class="subscript">(latin, English: compose)</sub> targets production environments and provides an API for 
   composition of classes, monkey patching, and casting.
  </p>
   <p class="formalpara">
    <h5 class="title">Composition:</h5>
    <p class="para">
     <span class="classname"><a href="class.componere-definition.php" class="classname">Componere\Definition</a></span> is used to define (or redefine) a class at runtime; 
     The class can then be registered, and in the case of redefinition it replaces the original class 
     for as long as the <span class="classname"><a href="class.componere-definition.php" class="classname">Componere\Definition</a></span> exists.
     <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="componere-definition.construct.php" class="methodname">Componere\Definition::__construct</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>)</div>
<div class="constructorsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="componere-definition.construct.php" class="methodname">Componere\Definition::__construct</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$parent</code></span>)</div>
<div class="constructorsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="componere-definition.construct.php" class="methodname">Componere\Definition::__construct</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$interfaces</code></span>)</div>
<div class="constructorsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="componere-definition.construct.php" class="methodname">Componere\Definition::__construct</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$parent</code></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$interfaces</code></span>)</div>

    </p>
   </p>

   <p class="formalpara">
    <h5 class="title">Patching:</h5>
    <p class="para">
     <span class="classname"><a href="class.componere-patch.php" class="classname">Componere\Patch</a></span> is used to change the class of a specific instance of an object at runtime; 
     Upon application the patch will remain applied for as long as the <span class="classname"><a href="class.componere-patch.php" class="classname">Componere\Patch</a></span> exists, and can be reverted explicitly.
     <div class="constructorsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="componere-patch.construct.php" class="methodname">Componere\Patch::__construct</a></span>(<span class="methodparam"><span class="type"><a href="language.types.object.php" class="type object">object</a></span> <code class="parameter">$instance</code></span>)</div>
<div class="constructorsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="componere-patch.construct.php" class="methodname">Componere\Patch::__construct</a></span>(<span class="methodparam"><span class="type"><a href="language.types.object.php" class="type object">object</a></span> <code class="parameter">$instance</code></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$interfaces</code></span>)</div>

    </p>
  </p>

  <p class="formalpara">
    <h5 class="title">Casting:</h5>
    <p class="para">
     <span class="classname"><strong class="classname">Componere\</strong></span> casting functions can cast among user defined compatible types;
     Where compatible means <span class="classname"><strong class="classname">Type</strong></span> is sub or super to the type of <code class="parameter">object</code>.
     <div class="methodsynopsis dc-description"><span class="methodname"><a href="componere.cast.php" class="methodname">Componere\cast</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$type</code></span>, <span class="methodparam"><span class="type"><a href="language.types.object.php" class="type object">object</a></span> <code class="parameter">$object</code></span>): <span class="type"><a href="language.types.object.php" class="type object">object</a></span></div>

     <div class="methodsynopsis dc-description"><span class="methodname"><a href="componere.cast_by_ref.php" class="methodname">Componere\cast_by_ref</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$type</code></span>, <span class="methodparam"><span class="type"><a href="language.types.object.php" class="type object">object</a></span> <code class="parameter">$object</code></span>): <span class="type"><a href="language.types.object.php" class="type object">object</a></span></div>

    </p>
  </p>

 </div><?php manual_footer($setup); ?>