product = $product; $this->category = $category; $this->catalog = $catalog; } /** * Returns count of product. * * @param array $filter * * @return int */ public function count() { return 0; } /** * Find product by slug. * * @param array $filter * * @return int */ public function product($slug) { return $this->product ->findBySlug($slig) ->toArray(); } }