src/Type/fixes/NSplEnum.php
function getConstList($include_default = false)
    {
        if (isset($this->_c__consts))
            return $this->_c__consts;

        $reflection = new ReflectionClass($this);
        $consts     = $reflection->getConstants();
        if ((bool)$include_default === false)
            unset($consts['__default']);

        return $this->_c__consts = $consts;
    }
function getConstList($include_default = false)
    {
        if (isset($this->_c__consts))
            return $this->_c__consts;

        $reflection = new ReflectionClass($this);
        $consts     = $reflection->getConstants();
        if ((bool)$include_default === false)
            unset($consts['__default']);

        return $this->_c__consts = $consts;
    }
function getConstList ( $ include_default = false ) { if ( isset ( $ this -> _c__consts ) ) return $ this -> _c__consts ; $ reflection = new ReflectionClass ( $ this ) ; $ consts = $ reflection -> getConstants ( ) ; if ( ( bool ) $ include_default === false ) unset ( $ consts [ '__default' ] ) ; return $ this -> _c__consts = $ consts ; }
Get Constant Lists
@param bool $include_default
@return array
Get Constant Lists