php-doc-en/reference/reflection/reflectionproperty/isreadonly.xml
Yoshinari Takaoka d73c3dcbd6
[PHP 8.1] Document readonly properties. (#1047)
* [PHP 8.1] Document readonly properties.

* added ReflectionProperty::isReadOnly method.

* Apply suggestions from code review

Co-authored-by: Sergey Panteleev <sergey@php.net>

* Update language/oop5/properties.xml

Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>

* Update language/oop5/properties.xml

Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>

* added link to readonly-properties docs.

Co-authored-by: Sergey Panteleev <sergey@php.net>
Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
2021-11-27 13:00:13 -06:00

64 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<refentry xml:id="reflectionproperty.isreadonly" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionProperty::isReadOnly</refname>
<refpurpose>Checks if property is readonly</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>bool</type><methodname>ReflectionProperty::isReadOnly</methodname>
<void />
</methodsynopsis>
<para>
Checks whether the <link linkend="language.oop5.properties.readonly-properties">property is readonly</link>.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&true; if the property is readonly, &false; otherwise.
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><methodname>ReflectionProperty::isPublic</methodname></member>
<member><methodname>ReflectionProperty::isProtected</methodname></member>
<member><methodname>ReflectionProperty::isPrivate</methodname></member>
<member><methodname>ReflectionProperty::isStatic</methodname></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->