profile instanceof ExternalProfile) { return $this->profile->name; } return Arr::get($this->profile, ExternalProfile::ATTRIBUTE_NAME); } /** * Get the id of the external user. * * @return int|null */ abstract public function getId(): ?int; /** * 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; }