Files
php-doc-ru/reference/componere/functions/componere.cast_by_ref.xml
Sergey Panteleev 83b504d131 docs(ru): New translation
git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@350173 c90b9560-bf6c-de11-be94-00142212c4b1
2020-07-20 03:32:07 +00:00

108 lines
3.4 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"?>
<!-- $Revision$ -->
<!-- EN-Revision: 74438c35a8ebec30e58bc3bd52fc7aec0d6ac46d Maintainer: sergey Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="componere.cast_by_ref" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Componere\cast_by_ref</refname>
<refpurpose>Приведение к типу</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>Type</type><methodname>Componere\cast_by_ref</methodname>
<methodparam><type>Type</type><parameter>type</parameter></methodparam>
<methodparam><parameter>object</parameter></methodparam>
</methodsynopsis>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><exceptionname>type</exceptionname></term>
<listitem>
<para>
Пользовательский тип
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>object</parameter></term>
<listitem>
<para>
Объект с пользовательским типом, совместимым с <exceptionname>Type</exceptionname>
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
<type>object</type> типа <exceptionname>Type</exceptionname>, приведенный из <parameter>object</parameter>,
где элементы являются ссылками на элементы <parameter>object</parameter>
</para>
</refsect1>
<refsect1 role="exceptions">
<title>Исключения</title>
<warning>
<para>
Выбрасывает исключение <type>InvalidArgumentException</type>, если тип <parameter>object</parameter> является производным от внутреннего класса
</para>
</warning>
<warning>
<para>
Выбрасывает исключение <type>InvalidArgumentException</type>, если <exceptionname>Type</exceptionname> является интерфейсом
</para>
</warning>
<warning>
<para>
Выбрасывает исключение <type>InvalidArgumentException</type>, если <exceptionname>Type</exceptionname> является трейтом
</para>
</warning>
<warning>
<para>
Выбрасывает исключение <type>InvalidArgumentException</type>, если <exceptionname>Type</exceptionname> является абстрактным классом
</para>
</warning>
<warning>
<para>
Выбрасывает исключение <type>InvalidArgumentException</type>, если <exceptionname>Type</exceptionname> не совместим с типом <parameter>object</parameter>
</para>
</warning>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><xref linkend="componere.cast" /></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
-->