/** * Counts clips * * @param string $type * @return int */ public function findClipsCount($type) { if ($type == 'toprated') { return BOL_RateService::getInstance()->findMostRatedEntityCount('vwls'); } return $this->clipDao->countClips($type); }