SplEnum
class SplEnum extends SplType (View source)
SplEnum gives the ability to emulate and create enumeration objects natively in PHP.
Constants
| __default | 
 | 
Methods
                    __construct(mixed $initial_value = self::__default, bool $strict = true)
        
                                            
                Creates a new value of some type
from 
SplType
            
                    array
                
                
                    getConstList(bool $include_default = false)
        
                                            
                
            Returns all consts (possible values) as an array.
Details
        
                            
    __construct(mixed $initial_value = self::__default, bool $strict = true)
        
    
    Creates a new value of some type
        
                            array
    getConstList(bool $include_default = false)
        
    
    Returns all consts (possible values) as an array.