code: public function getEntry(string $entryId, string $locale = null): Entry
      {
          $locale = $locale ?: $this->defaultLocale;
  
          /** @var Entry $entry */
          $entry = $this->requestWithCache(
              '/spaces/'.$this->spaceId.'/environments/'.$this->environmentId.'/entries/'.$entryId,
              ['locale' => $locale],
              'Entry',
              $entryId,
              $this->getLocaleForCacheKey($locale)
          );
  
          return $entry;
      }
docs: {@inheritdoc}