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