Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 1091

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The ReflectionClassConstant class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="reflectionclass.tostring.html">ReflectionClass::__toString</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="reflectionclassconstant.construct.html">ReflectionClassConstant::__construct</a></div>
 <div class="up"><a href="book.reflection.html">Reflection</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.reflectionclassconstant" class="reference">

 <h1 class="title">The ReflectionClassConstant class</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 7 &gt;= 7.1.0)</p>


  <div class="section" id="reflectionclassconstant.intro">
   <h2 class="title">Introduction</h2>
   <p class="para">
    The <strong class="classname">ReflectionClassConstant</strong> class reports
    information about a class constant.
   </p>
  </div>


  <div class="section" id="reflectionclassconstant.synopsis">
   <h2 class="title">Class synopsis</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">ReflectionClassConstant</strong>
     </span>
     
     <span class="oointerface">implements 
      <span class="interfacename"><a href="class.reflector.html" class="interfacename">Reflector</a></span>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Properties */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
      <var class="varname"><a href="class.reflectionclassconstant.html#reflectionclassconstant.props.name">$<var class="varname">name</var></a></var>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">public</span>
      <var class="varname"><a href="class.reflectionclassconstant.html#reflectionclassconstant.props.class">$<var class="varname">class</var></a></var>
    ;</div>


    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="reflectionclassconstant.construct.html" class="methodname">__construct</a></span>
    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$class</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">string</span> <span class="methodname"><a href="reflectionclassconstant.export.html" class="methodname">export</a></span>
    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$class</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
   [, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$return</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">ReflectionClass</span> <span class="methodname"><a href="reflectionclassconstant.getdeclaringclass.html" class="methodname">getDeclaringClass</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><a href="reflectionclassconstant.getdoccomment.html" class="methodname">getDocComment</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="reflectionclassconstant.getmodifiers.html" class="methodname">getModifiers</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><a href="reflectionclassconstant.getname.html" class="methodname">getName</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">mixed</span> <span class="methodname"><a href="reflectionclassconstant.getvalue.html" class="methodname">getValue</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><a href="reflectionclassconstant.isprivate.html" class="methodname">isPrivate</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><a href="reflectionclassconstant.isprotected.html" class="methodname">isProtected</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><a href="reflectionclassconstant.ispublic.html" class="methodname">isPublic</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><a href="reflectionclassconstant.tostring.html" class="methodname">__toString</a></span>
    ( <span class="methodparam">void</span>
   )</div>

   }</div>


  </div>

  

  <div class="section" id="reflectionclassconstant.props">
   <h2 class="title">Properties</h2>
   <dl>

    
     <dt id="reflectionclassconstant.props.name"><var class="varname"><var class="varname">name</var></var></dt>

     <dd>

      <p class="para">
       Name of the class constant. Read-only, throws
       <a href="class.reflectionexception.html" class="classname">ReflectionException</a> in attempt to write.
      </p>
     </dd>

    
    
     <dt id="reflectionclassconstant.props.class"><var class="varname"><var class="varname">class</var></var></dt>

     <dd>

      <p class="para">
       Name of the class where the class constant is defined. Read-only, throws
       <a href="class.reflectionexception.html" class="classname">ReflectionException</a> in attempt to write.
      </p>
     </dd>

    
   </dl>

  </div>


 </div>

 














































































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="reflectionclassconstant.construct.html">ReflectionClassConstant::__construct</a> — Constructs a ReflectionClassConstant</li><li><a href="reflectionclassconstant.export.html">ReflectionClassConstant::export</a> — Export</li><li><a href="reflectionclassconstant.getdeclaringclass.html">ReflectionClassConstant::getDeclaringClass</a> — Gets declaring class</li><li><a href="reflectionclassconstant.getdoccomment.html">ReflectionClassConstant::getDocComment</a> — Gets doc comments</li><li><a href="reflectionclassconstant.getmodifiers.html">ReflectionClassConstant::getModifiers</a> — Gets the class constant modifiers</li><li><a href="reflectionclassconstant.getname.html">ReflectionClassConstant::getName</a> — Get name of the constant</li><li><a href="reflectionclassconstant.getvalue.html">ReflectionClassConstant::getValue</a> — Gets value</li><li><a href="reflectionclassconstant.isprivate.html">ReflectionClassConstant::isPrivate</a> — Checks if class constant is private</li><li><a href="reflectionclassconstant.isprotected.html">ReflectionClassConstant::isProtected</a> — Checks if class constant is protected</li><li><a href="reflectionclassconstant.ispublic.html">ReflectionClassConstant::isPublic</a> — Checks if class constant is public</li><li><a href="reflectionclassconstant.tostring.html">ReflectionClassConstant::__toString</a> — Returns the string representation of the ReflectionClassConstant object</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="reflectionclass.tostring.html">ReflectionClass::__toString</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="reflectionclassconstant.construct.html">ReflectionClassConstant::__construct</a></div>
 <div class="up"><a href="book.reflection.html">Reflection</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>