/** * Counts amount of products associated with provided category id * * @param string $id Category id * @return integer */ public function getProductCountByCategoryId($id) { //@TODO: Add caching layer return $this->productMapper->countAllByCategoryId($id); }