apiKey = $apiKey; $this->idsModel = new Ids($apiKey); $this->query = new Query($apiKey); } public function getEmailsByUserId(int $userId): array { $params = [':account_id' => $userId]; return $this->getGrid($this->idsModel->getEmailsIdsByUserId(), $params); } protected function calculateCustomParams(array &$result): void { $this->calculateEmailReputation($result); } protected function convertTimeToUserTimezone(array &$result): void { $fields = ['lastseen']; $this->translateTimeZones($result, $fields); } }