protected function getProductTypeInstance($typeId)
    {
        if (!isset($this->productTypes[$typeId])) {
            $productEmulator = $this->getProductEmulator($typeId);

            $this->productTypes[$typeId] = $this->catalogProductType->factory($productEmulator);
        }

        return $this->productTypes[$typeId];
    }
protected function getProductTypeInstance($typeId)
    {
        if (!isset($this->productTypes[$typeId])) {
            $productEmulator = $this->getProductEmulator($typeId);

            $this->productTypes[$typeId] = $this->catalogProductType->factory($productEmulator);
        }

        return $this->productTypes[$typeId];
    }
protected function getProductTypeInstance ( $ typeId ) { if ( ! isset ( $ this -> productTypes [ $ typeId ] ) ) { $ productEmulator = $ this -> getProductEmulator ( $ typeId ) ; $ this -> productTypes [ $ typeId ] = $ this -> catalogProductType -> factory ( $ productEmulator ) ; } return $ this -> productTypes [ $ typeId ] ; }
Retrieve product type instance from identifier.

@param string $typeId Type identifier.

@return \Magento\Catalog\Model\Product\Type\AbstractType
Retrieve product type instance from identifier .