protected function _checkType( $value )
	{
		switch( $value )
		{
			case MShop_Order_Item_Base_Address_Abstract::TYPE_DELIVERY:
			case MShop_Order_Item_Base_Address_Abstract::TYPE_PAYMENT:
				return;
			default:
				throw new MShop_Order_Exception( sprintf( 'Service of type "%1$s" not available', $value ) );
		}
	}
protected function _checkType( $value )
	{
		switch( $value )
		{
			case MShop_Order_Item_Base_Address_Abstract::TYPE_DELIVERY:
			case MShop_Order_Item_Base_Address_Abstract::TYPE_PAYMENT:
				return;
			default:
				throw new MShop_Order_Exception( sprintf( 'Service of type "%1$s" not available', $value ) );
		}
	}
protected function _checkType ( $ value ) { switch ( $ value ) { case MShop_Order_Item_Base_Address_Abstract :: TYPE_DELIVERY : case MShop_Order_Item_Base_Address_Abstract :: TYPE_PAYMENT : return ; default : throw new MShop_Order_Exception ( sprintf ( 'Service of type "%1$s" not available' , $ value ) ) ; } }
Checks if the given address type is valid

@param string $value Address type defined in MShop_Order_Item_Base_Address_Abstract
@throws MShop_Order_Exception If type is invalid
Checks if the given address type is valid