-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathrelative-class-types.xml
More file actions
52 lines (47 loc) · 1.39 KB
/
relative-class-types.xml
File metadata and controls
52 lines (47 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 161dde4fe721309398dd324edbf02aec409f127b Maintainer: mowangjuanzi Status: ready -->
<sect1 xml:id="language.types.relative-class-types">
<title>相对类类型</title>
<para>
这些类型声明只能在类中使用。
</para>
<sect2 xml:id="language.types.relative-class-types.self">
<title><type>self</type></title>
<para>
该值必须是与类型声明所在类相同的类的 &instanceof; 实例。
</para>
</sect2>
<sect2 xml:id="language.types.relative-class-types.parent">
<title><type>parent</type></title>
<para>
值必须是 &instanceof; 使用了类型声明的父级类。
</para>
</sect2>
<sect2 xml:id="language.types.relative-class-types.static">
<title>static</title>
<para>
<type>static</type> 是仅用于返回值的类型,要求返回的值必须是调用该方法的类的
&instanceof; 实例。自 PHP 8.0.0 起可用。
</para>
</sect2>
</sect1>
<!-- 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
-->