public function getBitwiseAttribute()
    {
        $bitwise = 0;

        foreach ($this->attributes as $key => $value) {
            if ($value) {
                $bitwise |= (1 << $this->bitwise[$key]);
            } else {
                $bitwise &= ~(1 << $this->bitwise[$key]);
            }
        }

        return $bitwise;
    }
public function getBitwiseAttribute()
    {
        $bitwise = 0;

        foreach ($this->attributes as $key => $value) {
            if ($value) {
                $bitwise |= (1 << $this->bitwise[$key]);
            } else {
                $bitwise &= ~(1 << $this->bitwise[$key]);
            }
        }

        return $bitwise;
    }
public function getBitwiseAttribute ( ) { $ bitwise = 0 ; foreach ( $ this -> attributes as $ key => $ value ) { if ( $ value ) { $ bitwise |= ( 1 << $ this -> bitwise [ $ key ] ) ; } else { $ bitwise &= ~ ( 1 << $ this -> bitwise [ $ key ] ) ; } } return $ bitwise ; }
Retrieves the bitwise integer.

@return int
Retrieves the bitwise integer .