public function countPhotosByListType($listType) { switch ($listType) { case 'latest': default: return (int) $this->photoDao->countAll(); } }