src/Subjects/AbstractProductSubject.php
public function getTaxClassIdByTaxClassName($taxClassName)
    {

        // query whether or not, the requested tax class is available
        if (isset($this->taxClasses[$taxClassName])) {
            return (integer) $this->taxClasses[$taxClassName][MemberNames::CLASS_ID];
        }

        // throw an exception, if not
        throw new \Exception(
            $this->appendExceptionSuffix(
                sprintf('Found invalid tax class name %s', $taxClassName)
            )
        );
    }
public function getTaxClassIdByTaxClassName($taxClassName)
    {

        // query whether or not, the requested tax class is available
        if (isset($this->taxClasses[$taxClassName])) {
            return (integer) $this->taxClasses[$taxClassName][MemberNames::CLASS_ID];
        }

        // throw an exception, if not
        throw new \Exception(
            $this->appendExceptionSuffix(
                sprintf('Found invalid tax class name %s', $taxClassName)
            )
        );
    }
public function getTaxClassIdByTaxClassName ( $ taxClassName ) { // query whether or not, the requested tax class is available if ( isset ( $ this -> taxClasses [ $ taxClassName ] ) ) { return ( integer ) $ this -> taxClasses [ $ taxClassName ] [ MemberNames :: CLASS_ID ] ; } // throw an exception, if not throw new \ Exception ( $ this -> appendExceptionSuffix ( sprintf ( 'Found invalid tax class name %s' , $ taxClassName ) ) ) ; }
Return's the tax class ID for the passed tax class name.

@param string $taxClassName The tax class name to return the ID for

@return integer The tax class ID
@throws \Exception Is thrown, if the tax class with the requested name is not available
Return s the tax class ID for the passed tax class name .