1
0
mirror of https://github.com/php/doc-fr.git synced 2026-03-24 15:12:13 +01:00
Files
David CARLIER 979e209a74 reflection sync with EN (#1751)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-11-19 23:05:34 +00:00

72 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 348789addeedc32858ec0e29ec44fada391aecb3 Maintainer: yannick 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>Retourne l'objet qui correspond à $this à l'intérieur d'une closure</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>
Si la fonction est une fermeture non-statique, récupère l'objet lié à
<varname>$this</varname> à l'intérieur de la fermeture.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
Renvoie l'instance d'objet représentée par <varname>$this</varname> à l'intérieur
de la <classname>Closure</classname>.
Si la fonction n'est pas une closure ou si elle n'a pas de <varname>$this</varname>,
&null; est renvoyé à la place.
</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
-->