<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.reflectionproperty.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'reflectionproperty.hashooks.php',
    1 => 'ReflectionProperty::hasHooks',
    2 => 'Returns whether the property has any hooks defined',
  ),
  'up' => 
  array (
    0 => 'class.reflectionproperty.php',
    1 => 'ReflectionProperty',
  ),
  'prev' => 
  array (
    0 => 'reflectionproperty.hashook.php',
    1 => 'ReflectionProperty::hasHook',
  ),
  'next' => 
  array (
    0 => 'reflectionproperty.hastype.php',
    1 => 'ReflectionProperty::hasType',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/reflection/reflectionproperty/hashooks.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="reflectionproperty.hashooks" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionProperty::hasHooks</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.4.0)</p><p class="refpurpose"><span class="refname">ReflectionProperty::hasHooks</span> &mdash; <span class="dc-title">Returns whether the property has any hooks defined</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-reflectionproperty.hashooks-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ReflectionProperty::hasHooks</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <div class="warning"><strong class="warning">Увага</strong><p class="simpara">Наразі ця функція не
документована. Доступний лише список її параметрів.
</p></div>
  <p class="simpara">
   Returns whether the property has any hooks defined.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionproperty.hashooks-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">У цієї функції немає
параметрів.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionproperty.hashooks-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="simpara">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if the property has at least one hook defined, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> otherwise.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-reflectionproperty.hashooks-examples">
  <h3 class="title">Приклади</h3>
  <div class="example" id="reflectionproperty.hashooks.example.basic">
   <p><strong>Приклад #1 <span class="methodname"><strong>ReflectionProperty::hasHooks()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">class </span><span style="color: #0000BB">Example<br /></span><span style="color: #007700">{<br />    public </span><span style="color: #0000BB">string $name </span><span style="color: #007700">{ </span><span style="color: #0000BB">get </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"Name here"</span><span style="color: #007700">; }<br /><br />    public </span><span style="color: #0000BB">string $none</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #0000BB">$rClass </span><span style="color: #007700">= new </span><span style="color: #0000BB">\ReflectionClass</span><span style="color: #007700">(</span><span style="color: #0000BB">Example</span><span style="color: #007700">::class);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$rClass</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getProperty</span><span style="color: #007700">(</span><span style="color: #DD0000">'name'</span><span style="color: #007700">)-&gt;</span><span style="color: #0000BB">hasHooks</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$rClass</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getProperty</span><span style="color: #007700">(</span><span style="color: #DD0000">'none'</span><span style="color: #007700">)-&gt;</span><span style="color: #0000BB">hasHooks</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">bool(true)
bool(false)</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 notes" id="refsect1-reflectionproperty.hashooks-notes">
  <h3 class="title">Примітки</h3>
  <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
   <span class="simpara">
    This method is equivalent to checking <span class="methodname"><a href="reflectionproperty.gethooks.php" class="methodname">ReflectionProperty::getHooks()</a></span>
    against an empty array.
   </span>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionproperty.hashooks-seealso">
  <h3 class="title">Прогляньте також</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="reflectionproperty.gethooks.php" class="methodname" rel="rdfs-seeAlso">ReflectionProperty::getHooks()</a> - Returns an array of all hooks on this property</span></li>
  </ul>
 </div>


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