Skip to content

Commit 19a3f8c

Browse files
committed
fixed typo in phpdoc
1 parent f7333a2 commit 19a3f8c

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/MabeEnum/Enum.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,29 @@ abstract class Enum
1717
{
1818
/**
1919
* The selected value
20+
*
2021
* @var null|scalar
2122
*/
2223
private $value;
2324

2425
/**
2526
* The ordinal number of the value
27+
*
2628
* @var null|int
2729
*/
2830
private $ordinal;
2931

3032
/**
3133
* An array of available constants by class
34+
*
3235
* @var array ["$class" => ["$const" => $value, ...], ...]
3336
*/
3437
private static $constants = array();
3538

3639
/**
3740
* Already instantiated enums
38-
* @param array ["$class.$value" => MabeEnum\Enum, ...]
41+
*
42+
* @var array ["$class" => ["$const" => $instance, ...], ...]
3943
*/
4044
private static $instances = array();
4145

@@ -53,6 +57,7 @@ final private function __construct($value, $ordinal = null)
5357

5458
/**
5559
* Get the current selected constant name
60+
*
5661
* @return string
5762
* @see getName()
5863
*/
@@ -72,6 +77,7 @@ final private function __clone()
7277

7378
/**
7479
* Get the current selected value
80+
*
7581
* @return mixed
7682
*/
7783
final public function getValue()
@@ -81,6 +87,7 @@ final public function getValue()
8187

8288
/**
8389
* Get the current selected constant name
90+
*
8491
* @return string
8592
*/
8693
final public function getName()
@@ -90,6 +97,7 @@ final public function getName()
9097

9198
/**
9299
* Get the ordinal number of the selected value
100+
*
93101
* @return int
94102
*/
95103
final public function getOrdinal()
@@ -208,7 +216,8 @@ final static public function clear()
208216
}
209217

210218
/**
211-
* Get all available constants
219+
* Get all available constants of the called class
220+
*
212221
* @return array
213222
* @throws LogicException On ambiguous constant values
214223
*/
@@ -219,6 +228,7 @@ final static public function getConstants()
219228

220229
/**
221230
* Detect constants available by given class
231+
*
222232
* @param string $class
223233
* @return array
224234
* @throws LogicException On ambiguous constant values

0 commit comments

Comments
 (0)