<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'reflectionproperty.hashook.php',
    1 => 'ReflectionProperty::hasHook',
    2 => 'Returns whether the property has a given hook defined',
  ),
  'up' => 
  array (
    0 => 'class.reflectionproperty.php',
    1 => 'ReflectionProperty',
  ),
  'prev' => 
  array (
    0 => 'reflectionproperty.hasdefaultvalue.php',
    1 => 'ReflectionProperty::hasDefaultValue',
  ),
  'next' => 
  array (
    0 => 'reflectionproperty.hashooks.php',
    1 => 'ReflectionProperty::hasHooks',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/reflection/reflectionproperty/hashook.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

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

 </div>

 <div class="refsect1 description" id="refsect1-reflectionproperty.hashook-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ReflectionProperty::hasHook</strong></span>(<span class="methodparam"><span class="type"><a href="enum.propertyhooktype.php" class="type PropertyHookType">PropertyHookType</a></span> <code class="parameter">$type</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Returns whether the property has a given hook defined.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionproperty.hashook-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">PropertyHookType</code></dt>
    <dd>
     <span class="simpara">
      The type of hook to check for.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionproperty.hashook-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if the hook is defined on this property, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> if not.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-reflectionproperty.hashook-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="reflectionproperty.hashook.example.basic">
   <p><strong>Örnek 1 <span class="methodname"><strong>ReflectionProperty::hasHook()</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">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 /><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">$rProp </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">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$rProp</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">hasHook</span><span style="color: #007700">(</span><span style="color: #0000BB">PropertyHookType</span><span style="color: #007700">::</span><span style="color: #0000BB">Get</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$rProp</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">hasHook</span><span style="color: #007700">(</span><span style="color: #0000BB">PropertyHookType</span><span style="color: #007700">::</span><span style="color: #0000BB">Set</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>
Yukarıdaki örneğin çıktısı:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">bool(true)
bool(false)</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionproperty.hashook-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
   <li><span class="classname"><a href="class.reflectionmethod.php" class="classname">ReflectionMethod</a></span></li>
   <li><span class="classname"><a href="enum.propertyhooktype.php" class="classname">PropertyHookType</a></span></li>
  </ul>
 </div>


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