<?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.isinitialized.php',
    1 => 'ReflectionProperty::isInitialized',
    2 => 'Checks whether a property is initialized',
  ),
  'up' => 
  array (
    0 => 'class.reflectionproperty.php',
    1 => 'ReflectionProperty',
  ),
  'prev' => 
  array (
    0 => 'reflectionproperty.isfinal.php',
    1 => 'ReflectionProperty::isFinal',
  ),
  'next' => 
  array (
    0 => 'reflectionproperty.islazy.php',
    1 => 'ReflectionProperty::isLazy',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/reflection/reflectionproperty/isinitialized.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="reflectionproperty.isinitialized" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionProperty::isInitialized</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.4.0, PHP 8)</p><p class="refpurpose"><span class="refname">ReflectionProperty::isInitialized</span> &mdash; <span class="dc-title">Checks whether a property is initialized</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-reflectionproperty.isinitialized-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ReflectionProperty::isInitialized</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.object.php" class="type object">object</a></span></span> <code class="parameter">$object</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Checks whether a property is initialized.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionproperty.isinitialized-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">object</code></dt>
    <dd>
     <p class="para">
      If the property is non-static an object must be provided to fetch the
      property from.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionproperty.isinitialized-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Returns <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> for typed properties prior to initialization,
   and for properties that have been explicitly <span class="function"><a href="function.unset.php" class="function">unset()</a></span>.
   For all other properties <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> will be returned.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-reflectionproperty.isinitialized-errors">
  <h3 class="title">Hatalar/İstisnalar</h3>
  <p class="para">
   Throws a <span class="classname"><a href="class.reflectionexception.php" class="classname">ReflectionException</a></span> if the property is inaccessible.
   You can make a protected or private property accessible using
   <span class="methodname"><a href="reflectionproperty.setaccessible.php" class="methodname">ReflectionProperty::setAccessible()</a></span>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-reflectionproperty.isinitialized-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Sürüm: </th>
      <th>Açıklama</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">object</code> is nullable now.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-reflectionproperty.isinitialized-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="reflectionproperty.isinitialized.example.basic">
   <p><strong>Örnek 1 <span class="methodname"><strong>ReflectionProperty::isInitialized()</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">User<br /></span><span style="color: #007700">{<br />    public </span><span style="color: #0000BB">string $name</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #0000BB">$rp </span><span style="color: #007700">= new </span><span style="color: #0000BB">ReflectionProperty</span><span style="color: #007700">(</span><span style="color: #DD0000">'User'</span><span style="color: #007700">, </span><span style="color: #DD0000">'name'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$user </span><span style="color: #007700">= new </span><span style="color: #0000BB">User</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$rp</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">isInitialized</span><span style="color: #007700">(</span><span style="color: #0000BB">$user</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">$user</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">name </span><span style="color: #007700">= </span><span style="color: #DD0000">'Nikita'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$rp</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">isInitialized</span><span style="color: #007700">(</span><span style="color: #0000BB">$user</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(false)
bool(true)</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionproperty.isinitialized-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="reflectionproperty.hastype.php" class="methodname" rel="rdfs-seeAlso">ReflectionProperty::hasType()</a> - Checks if property has a type</span></li>
  </ul>
 </div>


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