Skip to content

Commit 550b9c3

Browse files
GirgiasTimWolla
andauthored
8.3: Document Random\IntervalBoundary (#3419)
Closes #3074 Co-authored-by: Tim Düsterhus <[email protected]>
1 parent c43393d commit 550b9c3

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed

reference/random/book.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
&reference.random.reference;
1717

1818
&reference.random.random.randomizer;
19+
&reference.random.random.intervalboundary;
1920

2021
&reference.random.random.engine;
2122
&reference.random.random.cryptosafeengine;
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<reference xmlns="http://docbook.org/ns/docbook" xml:id="enum.random.intervalboundary" role="enum">
3+
<title>The Random\IntervalBoundary Enum</title>
4+
<titleabbrev>Random\IntervalBoundary</titleabbrev>
5+
6+
<partintro>
7+
<section xml:id="enum.random.intervalboundary.intro">
8+
&reftitle.intro;
9+
<simpara>
10+
The <enumname>Random\IntervalBoundary</enumname> enum specifies
11+
whether an interval includes the boundary values within the set of values
12+
lying in the interval.
13+
</simpara>
14+
</section>
15+
16+
<section xml:id="enum.random.intervalboundary.synopsis">
17+
&reftitle.enumsynopsis;
18+
19+
<enumsynopsis>
20+
<enumname>Random\IntervalBoundary</enumname>
21+
22+
<enumitem>
23+
<enumidentifier>ClosedOpen</enumidentifier>
24+
<enumitemdescription>
25+
A left-open interval.
26+
The lower boundary is included in the interval,
27+
the upper boundary is not.
28+
</enumitemdescription>
29+
</enumitem>
30+
31+
<enumitem>
32+
<enumidentifier>ClosedClosed</enumidentifier>
33+
<enumitemdescription>
34+
A closed interval.
35+
Both boundary values are included in the interval.
36+
</enumitemdescription>
37+
</enumitem>
38+
39+
<enumitem>
40+
<enumidentifier>OpenClosed</enumidentifier>
41+
<enumitemdescription>
42+
A right-open interval.
43+
The upper boundary is included in the interval,
44+
the lower boundary is not.
45+
</enumitemdescription>
46+
</enumitem>
47+
48+
<enumitem>
49+
<enumidentifier>OpenOpen</enumidentifier>
50+
<enumitemdescription>
51+
An open interval.
52+
Neither boundary value is included in the interval.
53+
</enumitemdescription>
54+
</enumitem>
55+
56+
</enumsynopsis>
57+
</section>
58+
</partintro>
59+
</reference>
60+
<!-- Keep this comment at the end of the file
61+
Local variables:
62+
mode: sgml
63+
sgml-omittag:t
64+
sgml-shorttag:t
65+
sgml-minimize-attributes:nil
66+
sgml-always-quote-attributes:t
67+
sgml-indent-step:1
68+
sgml-indent-data:t
69+
indent-tabs-mode:nil
70+
sgml-parent-document:nil
71+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
72+
sgml-exposed-tags:nil
73+
sgml-local-catalogs:nil
74+
sgml-local-ecat-files:nil
75+
End:
76+
vim600: syn=xml fen fdm=syntax fdl=2 si
77+
vim: et tw=78 syn=sgml
78+
vi: ts=1 sw=1
79+
-->

reference/random/versions.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@
9595
<function name='random\randomizer::getbytesfromstring' from='PHP 8 &gt;= 8.3.0'/>
9696
<function name='random\randomizer::getfloat' from='PHP 8 &gt;= 8.3.0'/>
9797
<function name='random\randomizer::nextfloat' from='PHP 8 &gt;= 8.3.0'/>
98+
99+
<!-- RoundingMode enum -->
100+
<function name='random\intervalboundary' from='PHP 8 &gt;= 8.3.0'/>
98101
</versions>
99102
<!-- Keep this comment at the end of the file
100103
Local variables:

0 commit comments

Comments
 (0)