File: attribute_formatting_001.xml

package info (click to toggle)
php-doc 20241205~git.dfcbb86%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 70,956 kB
  • sloc: xml: 968,269; php: 23,883; javascript: 671; sh: 177; makefile: 37
file content (35 lines) | stat: -rw-r--r-- 1,748 bytes parent folder | download | duplicates (2)
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
<chapter xml:id="attribute-formatting">
 <section>
  <para>1. Class methodparameter with unknown attribute</para>
  <constructorsynopsis role="mysqli">
   <modifier>public</modifier> <methodname>mysqli::__construct</methodname>
   <methodparam><modifier role="attribute">#[\UnknownAttribute]</modifier><type class="union"><type>string</type><type>null</type></type><parameter>password</parameter><initializer><type>null</type></initializer></methodparam>
  </constructorsynopsis>
 </section>

 <section>
  <para>2. Class methodparameter with known attribute</para>
  <constructorsynopsis role="mysqli">
   <modifier>public</modifier> <methodname>mysqli::__construct</methodname>
   <methodparam><modifier role="attribute">#[\KnownAttribute]</modifier><type class="union"><type>string</type><type>null</type></type><parameter>password</parameter><initializer><type>null</type></initializer></methodparam>
  </constructorsynopsis>
 </section>

 <section>
  <para>3. Function parameter with unknown attribute</para>
  <methodsynopsis>
   <type>bool</type><methodname>password_verify</methodname>
   <methodparam><modifier role="attribute">#[\UnknownAttribute]</modifier><type>string</type><parameter>password</parameter></methodparam>
   <methodparam><type>string</type><parameter>hash</parameter></methodparam>
  </methodsynopsis>
 </section>

 <section>
  <para>4. Function parameter with known attribute</para>
  <methodsynopsis>
   <type>bool</type><methodname>password_verify</methodname>
   <methodparam><modifier role="attribute">#[\KnownAttribute]</modifier><type>string</type><parameter>password</parameter></methodparam>
   <methodparam><type>string</type><parameter>hash</parameter></methodparam>
  </methodsynopsis>
 </section>
</chapter>