protected function _checkType( $value )
	{
		switch( $value )
		{
			case MShop_Order_Item_Abstract::TYPE_REPEAT:
			case MShop_Order_Item_Abstract::TYPE_WEB:
			case MShop_Order_Item_Abstract::TYPE_PHONE:
				break;
			default:
				throw new MShop_Order_Exception( sprintf( 'Order type "%1$s" not within allowed range', $value ) );
		}
	}
protected function _checkType( $value )
	{
		switch( $value )
		{
			case MShop_Order_Item_Abstract::TYPE_REPEAT:
			case MShop_Order_Item_Abstract::TYPE_WEB:
			case MShop_Order_Item_Abstract::TYPE_PHONE:
				break;
			default:
				throw new MShop_Order_Exception( sprintf( 'Order type "%1$s" not within allowed range', $value ) );
		}
	}
protected function _checkType ( $ value ) { switch ( $ value ) { case MShop_Order_Item_Abstract :: TYPE_REPEAT : case MShop_Order_Item_Abstract :: TYPE_WEB : case MShop_Order_Item_Abstract :: TYPE_PHONE : break ; default : throw new MShop_Order_Exception ( sprintf ( 'Order type "%1$s" not within allowed range' , $ value ) ) ; } }
Checks the given order type is a valid constant.

@param integer $value Type constant defined in MShop_Order_Item_Abstract
@throws MShop_Order_Exception If order type is invalid
Checks the given order type is a valid constant .