public function scopeAt($levels, $replace = false)
    {
        $prev = $this->scopedErrors;
        $this->scopedErrors = (int) $levels;
        if (!$replace) {
            $this->scopedErrors |= $prev;
        }

        return $prev;
    }
public function scopeAt($levels, $replace = false)
    {
        $prev = $this->scopedErrors;
        $this->scopedErrors = (int) $levels;
        if (!$replace) {
            $this->scopedErrors |= $prev;
        }

        return $prev;
    }
public function scopeAt ( $ levels , $ replace = false ) { $ prev = $ this -> scopedErrors ; $ this -> scopedErrors = ( int ) $ levels ; if ( ! $ replace ) { $ this -> scopedErrors |= $ prev ; } return $ prev ; }
Sets the PHP error levels for which local variables are preserved.

@param int  $levels  A bit field of E_* constants for scoped errors
@param bool $replace Replace or amend the previous value

@return int The previous value
Sets the PHP error levels for which local variables are preserved .