<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.reflection.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'class.reflectionattribute.php',
    1 => 'ReflectionAttribute',
    2 => 'La classe ReflectionAttribute',
  ),
  'up' => 
  array (
    0 => 'book.reflection.php',
    1 => 'R&eacute;flexion',
  ),
  'prev' => 
  array (
    0 => 'reflectionreference.getid.php',
    1 => 'ReflectionReference::getId',
  ),
  'next' => 
  array (
    0 => 'reflectionattribute.construct.php',
    1 => 'ReflectionAttribute::__construct',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/reflection/reflectionattribute.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.reflectionattribute.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.reflectionattribute" class="reference">

 <h1 class="title">La classe ReflectionAttribute</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 8)</p>


  <div class="section" id="reflectionattribute.intro">
   <h2 class="title">Introduction</h2>
   <p class="para">
    La classe <span class="classname"><strong class="classname">ReflectionAttribute</strong></span> apporte des informations sur
    un <a href="language.attributes.php" class="link">Attribut</a>.
   </p>
  </div>


  <div class="section" id="reflectionattribute.synopsis">
   <h2 class="title">Synopsis de la classe</h2>


   <div class="classsynopsis"><div class="classsynopsisinfo">
    
     <span class="modifier">class</span> <strong class="classname"><strong class="classname">ReflectionAttribute</strong></strong>
    

    
     <span class="modifier">implements</span>
      <a href="class.reflector.php" class="interfacename">Reflector</a> {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constantes */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.reflectionattribute.php#reflectionattribute.constants.is-instanceof"><var class="varname">IS_INSTANCEOF</var></a></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Propriétés */</div>
    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
      <var class="varname"><a href="class.reflectionattribute.php#reflectionattribute.props.name">$<var class="varname">name</var></a></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Méthodes */</div>
    <div class="constructorsynopsis dc-description">
   <span class="modifier">private</span> <span class="methodname"><a href="reflectionattribute.construct.php" class="methodname">__construct</a></span>()</div>

    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionattribute.getarguments.php" class="methodname">getArguments</a></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionattribute.getname.php" class="methodname">getName</a></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionattribute.gettarget.php" class="methodname">getTarget</a></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionattribute.isrepeated.php" class="methodname">isRepeated</a></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionattribute.newinstance.php" class="methodname">newInstance</a></span>(): <span class="type"><a href="language.types.object.php" class="type object">object</a></span></div>

   }</div>


  </div>

  <div class="section" id="reflectionattribute.props">
   <h2 class="title">Propriétés</h2>
   <dl>
    
     <dt id="reflectionattribute.props.name"><var class="varname">name</var></dt>
     <dd>
      <span class="simpara">
       Le nom de l&#039;attribut.
      </span>
     </dd>
    
   </dl>
  </div>

  
  <div class="section" id="reflectionattribute.constants">
   <h2 class="title">Constantes pré-définies</h2>
   <div class="section" id="reflectionattribute.constants.flags">
    <h2 class="title">Drapeaux ReflectionAttribute</h2>
    <dl>

     
      <dt id="reflectionattribute.constants.is-instanceof">
       <strong><code><a href="class.reflectionattribute.php#reflectionattribute.constants.is-instanceof">ReflectionAttribute::IS_INSTANCEOF</a></code></strong>
       <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      </dt>
      <dd>
       <p class="para">
        Renvoie les attributs avec une
        vérification <code class="parameter">instanceof</code>.
       </p>
      </dd>
     

    </dl>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Les valeurs de ces constantes peuvent changer entre les versions de PHP.
      Il est recommandé d&#039;utiliser toujours les constantes et de ne pas se fier aux valeurs directement.
     </p>
    </p></blockquote>
   </div>
  </div>
  
  <div class="section">
   <h2 class="title">Historique</h2>
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.4.0</td>
       <td>
        Toutes les constantes de classe sont désormais typées.
       </td>
      </tr>

      <tr>
       <td>8.4.0</td>
       <td>
        Ajout de <span class="property"><a href="class.reflectionattribute.php#reflectionattribute.props.name">ReflectionAttribute::$name</a></span>.
       </td>
      </tr>

     </tbody>
    
   </table>

  </div>

 </div>

 

































 


<h2>Sommaire</h2><ul class="chunklist chunklist_reference"><li><a href="reflectionattribute.construct.php">ReflectionAttribute::__construct</a> — Constructeur priv&eacute; pour la d&eacute;sactivation de l'instanciation</li><li><a href="reflectionattribute.getarguments.php">ReflectionAttribute::getArguments</a> — Retourne les arguments pass&eacute;s &agrave; l'attribut</li><li><a href="reflectionattribute.getname.php">ReflectionAttribute::getName</a> — Retourne le nom de l'attribut</li><li><a href="reflectionattribute.gettarget.php">ReflectionAttribute::getTarget</a> — Retourne la cible de l'attribut en tant que masque de bits</li><li><a href="reflectionattribute.isrepeated.php">ReflectionAttribute::isRepeated</a> — Retourne si l'attribut de ce nom a &eacute;t&eacute; r&eacute;p&eacute;t&eacute; sur des &eacute;l&eacute;ments de code</li><li><a href="reflectionattribute.newinstance.php">ReflectionAttribute::newInstance</a> — Instancie la classe de l'attribut repr&eacute;sent&eacute;e par cette classe ReflectionAttribute et ses arguments</li></ul>
</div>
<?php manual_footer($setup); ?>