Method |
Description |
|
__construct ( string $enumeration ) |
Constructor |
|
attach ( Enum | null | boolean | integer | float | string $enumerator ) : void |
Attach a new enumerator or overwrite an existing one |
|
contains ( Enum | null | boolean | integer | float | string $enumerator ) : boolean |
Test if the given enumerator was attached |
|
count ( ) : integer |
Count the number of elements |
|
current ( ) : Enum | null |
Get the current enumerator |
|
detach ( Enum | null | boolean | integer | float | string $enumerator ) : void |
Detach the given enumerator |
|
diff ( EnumSet $other ) : EnumSet |
Produce a new set with enumerators in this but not in other (this - other) |
|
getBinaryBitsetBe ( ) : string |
Get binary bitset in big-endian order |
|
getBinaryBitsetLe ( ) : string |
Get binary bitset in little-endian order |
|
getBitset ( ) : string |
Get the binary bitset |
|
getEnumClass ( ) : string |
Get the classname of enumeration this set is for |
|
getEnumeration ( ) : string |
Get the classname of the enumeration |
|
getEnumerators ( ) : Enum[] |
Get the defined enumerators as array |
|
getNames ( ) : string[] |
Get names of the defined enumerators as array |
|
getOrdinals ( ) : int[] |
Get ordinal numbers of the defined enumerators as array |
|
getValues ( ) : null[] | bool[] | int[] | float[] | string[] |
Get values of the defined enumerators as array |
|
intersect ( EnumSet $other ) : EnumSet |
Produce a new set with enumerators common to both this and other (this & other) |
|
isEqual ( EnumSet $other ) : boolean |
Check if this EnumSet is the same as other |
|
isSubset ( EnumSet $other ) : boolean |
Check if this EnumSet is a subset of other |
|
isSuperset ( EnumSet $other ) : boolean |
Check if this EnumSet is a superset of other |
|
key ( ) : integer |
Get the ordinal number of the current iterator position |
|
next ( ) : void |
Go to the next valid iterator position. |
|
rewind ( ) : void |
Go to the first valid iterator position. |
|
setBinaryBitsetBe ( string $bitset ) : void |
Set binary bitset in big-endian order |
|
setBinaryBitsetLe ( string $bitset ) : void |
Set binary bitset in little-endian order |
|
setBitset ( string $bitset ) : void |
Set the bitset. |
|
symDiff ( EnumSet $other ) : EnumSet |
Produce a new set with enumerators in either this and other but not in both (this ^ (other | other)) |
|
union ( EnumSet $other ) : EnumSet |
Produce a new set with enumerators from both this and other (this | other) |
|
valid ( ) : boolean |
Test if the iterator in a valid state |
|