<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<phpdoc:classref xml:id="class.reflectionclassconstant" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">

 <title>The ReflectionClassConstant class</title>
 <titleabbrev>ReflectionClassConstant</titleabbrev>

 <partintro>

<!-- {{{ ReflectionClassConstant intro -->
  <section xml:id="reflectionclassconstant.intro">
   &reftitle.intro;
   <para>
    The <classname>ReflectionClassConstant</classname> class reports
    information about a class constant.
   </para>
  </section>
<!-- }}} -->

  <section xml:id="reflectionclassconstant.synopsis">
   &reftitle.classsynopsis;

<!-- {{{ Synopsis -->
   <classsynopsis class="class">
    <ooclass>
     <classname>ReflectionClassConstant</classname>
    </ooclass>

    <oointerface>
     <modifier>implements</modifier>
     <interfacename>Reflector</interfacename>
    </oointerface>

    <classsynopsisinfo role="comment">&Constants;</classsynopsisinfo>
    <fieldsynopsis>
     <modifier>public</modifier>
     <modifier>const</modifier>
     <type>int</type>
     <varname linkend="reflectionclassconstant.constants.is-public">ReflectionClassConstant::IS_PUBLIC</varname>
    </fieldsynopsis>
    <fieldsynopsis>
     <modifier>public</modifier>
     <modifier>const</modifier>
     <type>int</type>
     <varname linkend="reflectionclassconstant.constants.is-protected">ReflectionClassConstant::IS_PROTECTED</varname>
    </fieldsynopsis>
    <fieldsynopsis>
     <modifier>public</modifier>
     <modifier>const</modifier>
     <type>int</type>
     <varname linkend="reflectionclassconstant.constants.is-private">ReflectionClassConstant::IS_PRIVATE</varname>
    </fieldsynopsis>
    <fieldsynopsis>
     <modifier>public</modifier>
     <modifier>const</modifier>
     <type>int</type>
     <varname linkend="reflectionclassconstant.constants.is-final">ReflectionClassConstant::IS_FINAL</varname>
    </fieldsynopsis>

    <classsynopsisinfo role="comment">&Properties;</classsynopsisinfo>
    <fieldsynopsis>
     <modifier>public</modifier>
     <type>string</type>
     <varname linkend="reflectionclassconstant.props.name">name</varname>
    </fieldsynopsis>
    <fieldsynopsis>
     <modifier>public</modifier>
     <type>string</type>
     <varname linkend="reflectionclassconstant.props.class">class</varname>
    </fieldsynopsis>

    <classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
    <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectionclassconstant')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='ReflectionClassConstant'])">
     <xi:fallback/>
    </xi:include>
    <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectionclassconstant')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='ReflectionClassConstant'])">
     <xi:fallback/>
    </xi:include>
   </classsynopsis>
<!-- }}} -->

  </section>

  
<!-- {{{ ReflectionClass properties -->
  <section xml:id="reflectionclassconstant.props">
   &reftitle.properties;
   <variablelist>
    <varlistentry xml:id="reflectionclassconstant.props.name">
     <term><varname>name</varname></term>
     <listitem>
      <para>
       Name of the class constant. Read-only, throws
       <classname>ReflectionException</classname> in attempt to write.
      </para>
     </listitem>
    </varlistentry>
    <varlistentry xml:id="reflectionclassconstant.props.class">
     <term><varname>class</varname></term>
     <listitem>
      <para>
       Name of the class where the class constant is defined. Read-only, throws
       <classname>ReflectionException</classname> in attempt to write.
      </para>
     </listitem>
    </varlistentry>
   </variablelist>
  </section>
<!-- }}} -->

<!-- {{{ ReflectionClassConstant constants -->
  <section xml:id="reflectionclassconstant.constants">
   &reftitle.constants;
   <section xml:id="reflectionclassconstant.constants.modifiers">
    <title>ReflectionClassConstant Modifiers</title>
    <variablelist>

     <varlistentry xml:id="reflectionclassconstant.constants.is-public">
      <term><constant>ReflectionClassConstant::IS_PUBLIC</constant></term>
      <listitem>
       <para>
        Indicates <link linkend="language.oop5.visibility">public</link>
        constants.
        Prior to PHP 7.4.0, the value was <literal>256</literal>.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry xml:id="reflectionclassconstant.constants.is-protected">
      <term><constant>ReflectionClassConstant::IS_PROTECTED</constant></term>
      <listitem>
       <para>
        Indicates <link linkend="language.oop5.visibility">protected</link>
        constants.
        Prior to PHP 7.4.0, the value was <literal>512</literal>.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry xml:id="reflectionclassconstant.constants.is-private">
      <term><constant>ReflectionClassConstant::IS_PRIVATE</constant></term>
      <listitem>
       <para>
        Indicates <link linkend="language.oop5.visibility">private</link>
        constants.
        Prior to PHP 7.4.0, the value was <literal>1024</literal>.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry xml:id="reflectionclassconstant.constants.is-final">
      <term><constant>ReflectionClassConstant::IS_FINAL</constant></term>
      <listitem>
       <para>
        Indicates <link linkend="language.oop5.final">final</link>
        constants. Available as of PHP 8.1.0.
       </para>
      </listitem>
     </varlistentry>

    </variablelist>
    <note>
     <para>
      The values of these constants may change between PHP versions.
      It is recommended to always use the constants
      and not rely on the values directly.
     </para>
    </note>
   </section>
  </section>
<!-- }}} -->

  <section role="changelog">
   &reftitle.changelog;
   <informaltable>
    <tgroup cols="2">
     <thead>
      <row>
       <entry>&Version;</entry>
       <entry>&Description;</entry>
      </row>
     </thead>
     <tbody>
      <row>
       <entry>8.0.0</entry>
       <entry>
        <methodname>ReflectionClassConstant::export</methodname> was removed.
       </entry>
      </row>
     </tbody>
    </tgroup>
   </informaltable>
  </section>
 </partintro>

 &reference.reflection.entities.reflectionclassconstant;

</phpdoc:classref>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
