protected function _checkSalutation( $value )
	{
		switch( $value )
		{
			case MShop_Common_Item_Address_Abstract::SALUTATION_UNKNOWN:
			case MShop_Common_Item_Address_Abstract::SALUTATION_COMPANY:
			case MShop_Common_Item_Address_Abstract::SALUTATION_MRS:
			case MShop_Common_Item_Address_Abstract::SALUTATION_MISS:
			case MShop_Common_Item_Address_Abstract::SALUTATION_MR:
				return;
			default:
				throw new MShop_Common_Exception( sprintf( 'Address salutation "%1$s" not within allowed range', $value ) );
		}
	}
protected function _checkSalutation( $value )
	{
		switch( $value )
		{
			case MShop_Common_Item_Address_Abstract::SALUTATION_UNKNOWN:
			case MShop_Common_Item_Address_Abstract::SALUTATION_COMPANY:
			case MShop_Common_Item_Address_Abstract::SALUTATION_MRS:
			case MShop_Common_Item_Address_Abstract::SALUTATION_MISS:
			case MShop_Common_Item_Address_Abstract::SALUTATION_MR:
				return;
			default:
				throw new MShop_Common_Exception( sprintf( 'Address salutation "%1$s" not within allowed range', $value ) );
		}
	}
protected function _checkSalutation ( $ value ) { switch ( $ value ) { case MShop_Common_Item_Address_Abstract :: SALUTATION_UNKNOWN : case MShop_Common_Item_Address_Abstract :: SALUTATION_COMPANY : case MShop_Common_Item_Address_Abstract :: SALUTATION_MRS : case MShop_Common_Item_Address_Abstract :: SALUTATION_MISS : case MShop_Common_Item_Address_Abstract :: SALUTATION_MR : return ; default : throw new MShop_Common_Exception ( sprintf ( 'Address salutation "%1$s" not within allowed range' , $ value ) ) ; } }
Checks the given address salutation is valid

@param integer $value Address salutation defined in MShop_Common_Item_Address_Abstract
@throws MShop_Common_Exception If salutation is invalid
Checks the given address salutation is valid