Skip to content

Commit

Permalink
reflection section sync with EN
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Mar 19, 2024
1 parent 143dbec commit cb71f68
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions reference/reflection/reflectionproperty/construct.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ec2fe9a592f794978114ef5021db9f1d00c2e05d Maintainer: yannick Status: ready -->
<!-- EN-Revision: c1aba02c4753e56b4ab5053a0ab5be8584cbf8bc Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="reflectionproperty.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down Expand Up @@ -57,6 +57,7 @@
<programlisting role="php">
<![CDATA[
<?php
class Str
{
public $length = 5;
Expand All @@ -75,7 +76,7 @@ printf(
$prop->isStatic() ? ' static' : '',
$prop->getName(),
$prop->isDefault() ? 'declared at compile-time' : 'created at run-time',
var_export(Reflection::getModifierNames($prop->getModifiers()), 1)
var_export(Reflection::getModifierNames($prop->getModifiers()), true)
);
// Création d'une instance de Str
Expand All @@ -92,6 +93,7 @@ var_dump($prop->getValue($obj));
// Affiche l'objet
var_dump($obj);
?>
]]>
</programlisting>
Expand All @@ -117,7 +119,8 @@ object(Str)#2 (1) {
<![CDATA[
<?php
class Foo {
class Foo
{
public $x = 1;
protected $y = 2;
private $z = 3;
Expand Down

0 comments on commit cb71f68

Please sign in to comment.