1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-24 07:42:22 +01:00
Files
Mikhail Alferov 64f5bb4799 Update reference/reflection/reflectionfunctionabstract to en (#996)
* Update getclosurecalledclass.xml to en

* Update getclosurescopeclass.xml to en

* Update getclosurethis.xml to en
2024-11-19 01:28:47 +03:00

71 lines
2.8 KiB
XML
Raw Permalink 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: 348789addeedc32858ec0e29ec44fada391aecb3 Maintainer: tmn Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="reflectionfunctionabstract.getclosurethis" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
<refname>ReflectionFunctionAbstract::getClosureThis</refname>
<refpurpose>Возвращает объект, который соответствует псевдопеременной $this внутри замыкания</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis role="ReflectionFunctionAbstract">
<modifier>public</modifier> <type class="union"><type>object</type><type>null</type></type><methodname>ReflectionFunctionAbstract::getClosureThis</methodname>
<void/>
</methodsynopsis>
<para>
Метод получает объект, который связывается с псевдопеременной <varname>$this</varname> внутри замыкания,
если функцию объявили как нестатическое замыкание.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
Метод возвращает экземпляр объекта, который представляет псевдопеременная <varname>$this</varname>
внутри замыкания <classname>Closure</classname>.
Метод вернёт &null; вместо объекта класса,
если функция не принадлежит типу замыкания или внутри замыкания недоступна переменная <varname>$this</varname>.
</simpara>
</refsect1>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('reflectionfunctionabstract.getclosurecalledclass')/db:refsect1[@role='examples']/.)">
<xi:fallback/>
</xi:include>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><methodname>ReflectionFunctionAbstract::getClosureCalledClass</methodname></member>
<member><methodname>ReflectionFunctionAbstract::getClosureScopeClass</methodname></member>
<member><xref linkend="language.oop5.late-static-bindings" /></member>
</simplelist>
</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
-->