<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.reflectionclass.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ru',
  ),
  'this' => 
  array (
    0 => 'reflectionclass.tostring.php',
    1 => 'ReflectionClass::__toString',
    2 => 'Возвращает строковое представление объекта класса ReflectionClass',
  ),
  'up' => 
  array (
    0 => 'class.reflectionclass.php',
    1 => 'ReflectionClass',
  ),
  'prev' => 
  array (
    0 => 'reflectionclass.setstaticpropertyvalue.php',
    1 => 'ReflectionClass::setStaticPropertyValue',
  ),
  'next' => 
  array (
    0 => 'class.reflectionclassconstant.php',
    1 => 'ReflectionClassConstant',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ru',
    'path' => 'reference/reflection/reflectionclass/tostring.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="reflectionclass.tostring" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionClass::__toString</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ReflectionClass::__toString</span> &mdash; <span class="dc-title">Возвращает строковое представление объекта класса ReflectionClass</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-reflectionclass.tostring-description">
  <h3 class="title">Описание</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ReflectionClass::__toString</strong></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   Возвращает строковое представление объекта класса ReflectionClass.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionclass.tostring-parameters">
  <h3 class="title">Список параметров</h3>
  
<p class="para">
 Сигнатура функции не содержит параметров.
</p>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionclass.tostring-returnvalues">
  <h3 class="title">Возвращаемые значения</h3>
  <p class="para">
   Строковое представление экземпляра класса <span class="classname"><a href="class.reflectionclass.php" class="classname">ReflectionClass</a></span>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-reflectionclass.tostring-examples">
  <h3 class="title">Примеры</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Пример #1 Пример использования <span class="methodname"><strong>ReflectionClass::__toString()</strong></span></strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$reflectionClass </span><span style="color: #007700">= new </span><span style="color: #0000BB">ReflectionClass</span><span style="color: #007700">(</span><span style="color: #DD0000">'Exception'</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">$reflectionClass</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">__toString</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    
<div class="example-contents"><p>
 Результат выполнения приведённого примера:
</p></div>

    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">Class [ &lt;internal:Core&gt; class Exception ] {

  - Constants [0] {
  }

  - Static properties [0] {
  }

  - Static methods [0] {
  }

  - Properties [7] {
    Property [ &lt;default&gt; protected $message ]
    Property [ &lt;default&gt; private $string ]
    Property [ &lt;default&gt; protected $code ]
    Property [ &lt;default&gt; protected $file ]
    Property [ &lt;default&gt; protected $line ]
    Property [ &lt;default&gt; private $trace ]
    Property [ &lt;default&gt; private $previous ]
  }

  - Methods [10] {
    Method [ &lt;internal:Core&gt; final private method __clone ] {
    }

    Method [ &lt;internal:Core, ctor&gt; public method __construct ] {

      - Parameters [3] {
        Parameter #0 [ &lt;optional&gt; $message ]
        Parameter #1 [ &lt;optional&gt; $code ]
        Parameter #2 [ &lt;optional&gt; $previous ]
      }
    }

    Method [ &lt;internal:Core&gt; final public method getMessage ] {
    }

    Method [ &lt;internal:Core&gt; final public method getCode ] {
    }

    Method [ &lt;internal:Core&gt; final public method getFile ] {
    }

    Method [ &lt;internal:Core&gt; final public method getLine ] {
    }

    Method [ &lt;internal:Core&gt; final public method getTrace ] {
    }

    Method [ &lt;internal:Core&gt; final public method getPrevious ] {
    }

    Method [ &lt;internal:Core&gt; final public method getTraceAsString ] {
    }

    Method [ &lt;internal:Core&gt; public method __toString ] {
    }
  }
}</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionclass.tostring-seealso">
  <h3 class="title">Смотрите также</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="reflectionclass.export.php" class="methodname" rel="rdfs-seeAlso">ReflectionClass::export()</a> - Экспортирует класс</span></li>
    <li><a href="language.oop5.magic.php#object.tostring" class="link">__toString()</a></li>
   </ul>
  </p>
 </div>


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