userId; } /** * Get the token to the request. * * @return string */ public function getToken(): string { return Crypt::decrypt($this->token->access_token); } /** * Get the username. * * @return string|null */ abstract public function getUsername(): ?string; /** * Get the entries of the response. * * @return array */ abstract public function getEntries(): array; /** * Make the request to the external api. * * @return static */ abstract protected function makeRequest(): static; }