src/Sulu/Bundle/Sales/CoreBundle/Item/ItemManager.php
public function removeStatus(ApiItemInterface $item, $status, $flush = false)
    {
        // BITMASK
        $currentBitmaskStatus = $item->getBitmaskStatus();
        // if status is in bitmask, remove it
        if ($currentBitmaskStatus && $currentBitmaskStatus & $status) {
            $item->setBitmaskStatus($currentBitmaskStatus & ~$status);
        }

        if ($flush === true) {
            $this->em->flush();
        }
    }
public function removeStatus(ApiItemInterface $item, $status, $flush = false)
    {
        // BITMASK
        $currentBitmaskStatus = $item->getBitmaskStatus();
        // if status is in bitmask, remove it
        if ($currentBitmaskStatus && $currentBitmaskStatus & $status) {
            $item->setBitmaskStatus($currentBitmaskStatus & ~$status);
        }

        if ($flush === true) {
            $this->em->flush();
        }
    }
public function removeStatus ( ApiItemInterface $ item , $ status , $ flush = false ) { // BITMASK $ currentBitmaskStatus = $ item -> getBitmaskStatus ( ) ; // if status is in bitmask, remove it if ( $ currentBitmaskStatus && $ currentBitmaskStatus & $ status ) { $ item -> setBitmaskStatus ( $ currentBitmaskStatus & ~ $ status ) ; } if ( $ flush === true ) { $ this -> em -> flush ( ) ; } }
Converts status of an item

@param ApiItemInterface $item
@param int $status
@param bool $flush
Converts status of an item