protected function normalizeBoolean($value)
    {
        switch (true) {
            case $this->checkFlag(self::BOOLEAN_MODE_INTEGER):
            default:
                return (int) $value;

                break;

            case $this->checkFlag(self::BOOLEAN_MODE_BOOL_STRING):
                return $value === true ? 'true' : 'false';

                break;

            case $this->checkFlag(self::BOOLEAN_MODE_STRING):
                return $value === true ? 'On' : 'Off';

                break;
        }
    }
protected function normalizeBoolean($value)
    {
        switch (true) {
            case $this->checkFlag(self::BOOLEAN_MODE_INTEGER):
            default:
                return (int) $value;

                break;

            case $this->checkFlag(self::BOOLEAN_MODE_BOOL_STRING):
                return $value === true ? 'true' : 'false';

                break;

            case $this->checkFlag(self::BOOLEAN_MODE_STRING):
                return $value === true ? 'On' : 'Off';

                break;
        }
    }
protected function normalizeBoolean ( $ value ) { switch ( true ) { case $ this -> checkFlag ( self :: BOOLEAN_MODE_INTEGER ) : default : return ( int ) $ value ; break ; case $ this -> checkFlag ( self :: BOOLEAN_MODE_BOOL_STRING ) : return $ value === true ? 'true' : 'false' ; break ; case $ this -> checkFlag ( self :: BOOLEAN_MODE_STRING ) : return $ value === true ? 'On' : 'Off' ; break ; } }
Normalizes a boolean value.

@param bool $value

@return int|string
Normalizes a boolean value .