src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
protected function GetShipToBillingAddress()
    {
        if (array_key_exists('bShipToBillingAddress', $this->aUserData)) {
            return $this->aUserData['bShipToBillingAddress'];
        }
        if (array_key_exists('shopstepuserdata_bShipToBillingAddress', $_SESSION)) {
            return $_SESSION['shopstepuserdata_bShipToBillingAddress'];
        } else {
            $oUser = self::getExtranetUserProvider()->getActiveUser();

            return $oUser->ShipToBillingAddress() ? (1) : (0);
        }
    }
protected function GetShipToBillingAddress()
    {
        if (array_key_exists('bShipToBillingAddress', $this->aUserData)) {
            return $this->aUserData['bShipToBillingAddress'];
        }
        if (array_key_exists('shopstepuserdata_bShipToBillingAddress', $_SESSION)) {
            return $_SESSION['shopstepuserdata_bShipToBillingAddress'];
        } else {
            $oUser = self::getExtranetUserProvider()->getActiveUser();

            return $oUser->ShipToBillingAddress() ? (1) : (0);
        }
    }
protected function GetShipToBillingAddress ( ) { if ( array_key_exists ( 'bShipToBillingAddress' , $ this -> aUserData ) ) { return $ this -> aUserData [ 'bShipToBillingAddress' ] ; } if ( array_key_exists ( 'shopstepuserdata_bShipToBillingAddress' , $ _SESSION ) ) { return $ _SESSION [ 'shopstepuserdata_bShipToBillingAddress' ] ; } else { $ oUser = self :: getExtranetUserProvider ( ) -> getActiveUser ( ) ; return $ oUser -> ShipToBillingAddress ( ) ? ( 1 ) : ( 0 ) ; } }
return 1 if the user wants to ship to the billing address, else 0.

@return int
return 1 if the user wants to ship to the billing address else 0 .