protected function _checkPaymentStatus( $value )
	{
		$temp = (int) $value;

		if( $temp < MShop_Order_Item_Abstract::PAY_UNFINISHED || $temp > MShop_Order_Item_Abstract::PAY_RECEIVED ) {
			throw new MShop_Order_Exception( sprintf( 'Order payment status "%1$s" not within allowed range', $value ) );
		}
	}
protected function _checkPaymentStatus( $value )
	{
		$temp = (int) $value;

		if( $temp < MShop_Order_Item_Abstract::PAY_UNFINISHED || $temp > MShop_Order_Item_Abstract::PAY_RECEIVED ) {
			throw new MShop_Order_Exception( sprintf( 'Order payment status "%1$s" not within allowed range', $value ) );
		}
	}
protected function _checkPaymentStatus ( $ value ) { $ temp = ( int ) $ value ; if ( $ temp < MShop_Order_Item_Abstract :: PAY_UNFINISHED || $ temp > MShop_Order_Item_Abstract :: PAY_RECEIVED ) { throw new MShop_Order_Exception ( sprintf ( 'Order payment status "%1$s" not within allowed range' , $ value ) ) ; } }
Checks the given payment status is a valid constant.

@param integer $value Payment status constant defined in MShop_Order_Item_Abstract
@throws MShop_Order_Exception If payment status is invalid
Checks the given payment status is a valid constant .