model = new \Models\Context\Data(); } public function getContextByAccountIds(array $accountIds, int $apiKey): array { return $this->getContext($accountIds, $apiKey); } public function getContextByAccountId(int $accountId, int $apiKey): array { $accountIds = [$accountId]; $context = $this->getContext($accountIds, $apiKey); return $context[$accountId] ?? []; } private function getContext(array $accountIds, int $apiKey): array { return $this->model->getContext($accountIds, $apiKey); } }