1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-25 08:12:14 +01:00
Files
archived-doc-ru/reference/reflection/reflectionproperty.xml
2024-06-14 17:02:33 +01:00

235 lines
8.1 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60 Maintainer: irker Status: ready -->
<!-- Reviewed: no -->
<reference xml:id="class.reflectionproperty" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Класс ReflectionProperty</title>
<titleabbrev>ReflectionProperty</titleabbrev>
<partintro>
<!-- {{{ ReflectionProperty intro -->
<section xml:id="reflectionproperty.intro">
&reftitle.intro;
<para>
Класс <classname>ReflectionProperty</classname> сообщает
информацию о свойствах класса.
</para>
</section>
<!-- }}} -->
<section xml:id="reflectionproperty.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooclass>
<classname>ReflectionProperty</classname>
</ooclass>
<oointerface>
<modifier>implements</modifier>
<interfacename>Reflector</interfacename>
</oointerface>
<classsynopsisinfo role="comment">&Constants;</classsynopsisinfo>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="reflectionproperty.constants.is-static">ReflectionProperty::IS_STATIC</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="reflectionproperty.constants.is-readonly">ReflectionProperty::IS_READONLY</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="reflectionproperty.constants.is-public">ReflectionProperty::IS_PUBLIC</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="reflectionproperty.constants.is-protected">ReflectionProperty::IS_PROTECTED</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="reflectionproperty.constants.is-private">ReflectionProperty::IS_PRIVATE</varname>
</fieldsynopsis>
<classsynopsisinfo role="comment">&Properties;</classsynopsisinfo>
<fieldsynopsis>
<modifier>public</modifier>
<type>string</type>
<varname linkend="reflectionproperty.props.name">name</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<type>string</type>
<varname linkend="reflectionproperty.props.class">class</varname>
</fieldsynopsis>
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectionproperty')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='ReflectionProperty'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectionproperty')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='ReflectionProperty'])">
<xi:fallback/>
</xi:include>
</classsynopsis>
<!-- }}} -->
</section>
<!-- {{{ ReflectionProperty properties -->
<section xml:id="reflectionproperty.props">
&reftitle.properties;
<variablelist>
<varlistentry xml:id="reflectionproperty.props.name">
<term><varname>name</varname></term>
<listitem>
<para>
Имя свойства. Доступно только для чтения и выбрасывает
исключение <classname>ReflectionException</classname> при попытке записи.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="reflectionproperty.props.class">
<term><varname>class</varname></term>
<listitem>
<para>
Имя класса, в котором данное свойство описано. Доступно только для чтения и выбрасывает
исключение <classname>ReflectionException</classname> при попытке записи.
</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<!-- }}} -->
<!-- {{{ ReflectionProperty constants -->
<section xml:id="reflectionproperty.constants">
&reftitle.constants;
<section xml:id="reflectionproperty.constants.modifiers">
<title>Модификаторы ReflectionProperty</title>
<variablelist>
<varlistentry xml:id="reflectionproperty.constants.is-static">
<term><constant>ReflectionProperty::IS_STATIC</constant></term>
<listitem>
<para>
Указывает, что свойство является
<link linkend="language.oop5.static">статическим</link>.
До PHP 7.4.0, значение было <literal>1</literal>.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="reflectionproperty.constants.is-readonly">
<term><constant>ReflectionProperty::IS_READONLY</constant></term>
<listitem>
<para>
Указывает, что свойство является <link linkend="language.oop5.properties.readonly-properties">доступным только для чтения</link>.
Доступно, начиная с PHP 8.1.0.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="reflectionproperty.constants.is-public">
<term><constant>ReflectionProperty::IS_PUBLIC</constant></term>
<listitem>
<para>
Указывает, что свойство является <link linkend="language.oop5.visibility">общедоступным</link>.
До PHP 7.4.0, значение было <literal>256</literal>.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="reflectionproperty.constants.is-protected">
<term><constant>ReflectionProperty::IS_PROTECTED</constant></term>
<listitem>
<para>
Указывает, что свойство является <link linkend="language.oop5.visibility">защищённым</link>.
До PHP 7.4.0, значение было <literal>512</literal>.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="reflectionproperty.constants.is-private">
<term><constant>ReflectionProperty::IS_PRIVATE</constant></term>
<listitem>
<para>
Указывает, что свойство является <link linkend="language.oop5.visibility">закрытым</link>.
До PHP 7.4.0, значение было <literal>1024</literal>.
</para>
</listitem>
</varlistentry>
</variablelist>
<note>
<para>
Значения этих констант могут изменяться от версии к версии PHP.
Рекомендуется всегда использовать константы и не полагаться напрямую на значения.
</para>
</note>
</section>
</section>
<!-- }}} -->
<section role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
Метод <methodname>ReflectionProperty::export</methodname> был удалён.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
</partintro>
&reference.reflection.entities.reflectionproperty;
</reference>
<!-- 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
-->