public function getConversationLength($conversationId) { $deletedTimestamp = $this->getConversationDeletedTimestamp($conversationId); return (int) $this->messageDao->getConversationLength($conversationId, $deletedTimestamp); }