public function mapPriceType($priceType)
    {

        // query whether or not the passed price type is available
        if (isset($this->priceTypeMapping[$priceType])) {
            return $this->priceTypeMapping[$priceType];
        }

        // throw an exception, if not
        throw new \Exception(
            $this->appendExceptionSuffix(
                sprintf('Can\'t find mapping for price type %s', $priceType)
            )
        );
    }
public function mapPriceType($priceType)
    {

        // query whether or not the passed price type is available
        if (isset($this->priceTypeMapping[$priceType])) {
            return $this->priceTypeMapping[$priceType];
        }

        // throw an exception, if not
        throw new \Exception(
            $this->appendExceptionSuffix(
                sprintf('Can\'t find mapping for price type %s', $priceType)
            )
        );
    }
public function mapPriceType ( $ priceType ) { // query whether or not the passed price type is available if ( isset ( $ this -> priceTypeMapping [ $ priceType ] ) ) { return $ this -> priceTypeMapping [ $ priceType ] ; } // throw an exception, if not throw new \ Exception ( $ this -> appendExceptionSuffix ( sprintf ( 'Can\'t find mapping for price type %s' , $ priceType ) ) ) ; }
Return's the mapping for the passed price type.

@param string $priceType The price type to map

@return integer The mapped price type
@throws \Exception Is thrown, if the passed price type can't be mapped
Return s the mapping for the passed price type .