_createDebugLog('ProductReadService::getProductById >> Fetch product with ID = ' . $productId->asInt()); return parent::getProductById($productId); } /** * Overloaded "getProductList" method. * * @param LanguageCode $languageCode * @param IdType|null $categoryId * @param IdType|null $customerStatusLimit * * @return ProductListItemCollection */ public function getProductList(LanguageCode $languageCode, IdType $categoryId = null, IdType $customerStatusLimit = null) { $this->_createDebugLog('ProductReadService::getProductList >> Fetch product list with category ID = ' . $categoryId->asInt()); return parent::getProductList($languageCode, $categoryId, $customerStatusLimit); } /** * Overloaded "getActiveProductList" method. * * Check if the mysqli instance exists. If it exists, log some extra information. * Afterwards, the parent method is invoked and returned. * * @param LanguageCode $languageCode * @param IdType|null $categoryId * @param IdType|null $customerStatusLimit * * @return ProductListItemCollection */ public function getActiveProductList(LanguageCode $languageCode, IdType $categoryId = null, IdType $customerStatusLimit = null) { $this->_createDebugLog('ProductReadService::getActiveProductList >> Fetch product list with category ID = ' . $categoryId->asInt()); return parent::getActiveProductList($languageCode, $categoryId, $customerStatusLimit); } /** * Overloaded "getProductLinks" method. * * Check if the mysqli instance exists. If it exists, log some extra information. * Afterwards, the parent method is invoked and returned. * * @param IdType $productId * * @return IdCollection */ public function getProductLinks(IdType $productId) { $this->_createDebugLog('ProductReadService::getProductLinks >> Fetch product links for product ID = ' . $productId->asInt()); return parent::getProductLinks($productId); } /** * Create new debug log entry. * * @param string $message */ protected function _createDebugLog($message) { $logControl = LogControl::get_instance(); $logControl->notice($message); } }