<?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 => 'de',
  ),
  'this' => 
  array (
    0 => 'reflectionclass.getinterfaces.php',
    1 => 'ReflectionClass::getInterfaces',
    2 => 'Gets the interfaces',
  ),
  'up' => 
  array (
    0 => 'class.reflectionclass.php',
    1 => 'ReflectionClass',
  ),
  'prev' => 
  array (
    0 => 'reflectionclass.getinterfacenames.php',
    1 => 'ReflectionClass::getInterfaceNames',
  ),
  'next' => 
  array (
    0 => 'reflectionclass.getlazyinitializer.php',
    1 => 'ReflectionClass::getLazyInitializer',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/reflection/reflectionclass/getinterfaces.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="reflectionclass.getinterfaces" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionClass::getInterfaces</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ReflectionClass::getInterfaces</span> &mdash; <span class="dc-title">Gets the interfaces</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-reflectionclass.getinterfaces-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ReflectionClass::getInterfaces</strong></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   Gets the interfaces.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionclass.getinterfaces-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">Diese Funktion besitzt keine Parameter.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionclass.getinterfaces-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   An associative <span class="type"><a href="language.types.array.php" class="type array">array</a></span> of interfaces, with keys as interface
   names and the array values as <span class="classname"><a href="class.reflectionclass.php" class="classname">ReflectionClass</a></span> objects.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-reflectionclass.getinterfaces-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-5478">
    <p><strong>Beispiel #1 <span class="methodname"><strong>ReflectionClass::getInterfaces()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">interface </span><span style="color: #0000BB">Foo </span><span style="color: #007700">{ }<br /><br />interface </span><span style="color: #0000BB">Bar </span><span style="color: #007700">{ }<br /><br />class </span><span style="color: #0000BB">Baz </span><span style="color: #007700">implements </span><span style="color: #0000BB">Foo</span><span style="color: #007700">, </span><span style="color: #0000BB">Bar </span><span style="color: #007700">{ }<br /><br /></span><span style="color: #0000BB">$rc1 </span><span style="color: #007700">= new </span><span style="color: #0000BB">ReflectionClass</span><span style="color: #007700">(</span><span style="color: #DD0000">"Baz"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$rc1</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getInterfaces</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [Foo] =&gt; ReflectionClass Object
        (
            [name] =&gt; Foo
        )

    [Bar] =&gt; ReflectionClass Object
        (
            [name] =&gt; Bar
        )

)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionclass.getinterfaces-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="reflectionclass.getinterfacenames.php" class="methodname" rel="rdfs-seeAlso">ReflectionClass::getInterfaceNames()</a> - Gets the interface names</span></li>
   </ul>
  </p>
 </div>


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