private static function extractConstants()
    {
        $oClass = new \ReflectionClass(get_called_class());
        $constants = $oClass->getConstants();
        unset(
            $constants['IS_IMPLICIT_ABSTRACT'],
            $constants['IS_EXPLICIT_ABSTRACT'],
            $constants['IS_FINAL']
        );

        return $constants;
    }
private static function extractConstants()
    {
        $oClass = new \ReflectionClass(get_called_class());
        $constants = $oClass->getConstants();
        unset(
            $constants['IS_IMPLICIT_ABSTRACT'],
            $constants['IS_EXPLICIT_ABSTRACT'],
            $constants['IS_FINAL']
        );

        return $constants;
    }
private static function extractConstants ( ) { $ oClass = new \ ReflectionClass ( get_called_class ( ) ) ; $ constants = $ oClass -> getConstants ( ) ; unset ( $ constants [ 'IS_IMPLICIT_ABSTRACT' ] , $ constants [ 'IS_EXPLICIT_ABSTRACT' ] , $ constants [ 'IS_FINAL' ] ) ; return $ constants ; }
Extract constants using ReflectionClass
Extract constants using ReflectionClass