code: protected function getLocaleTransfer(FosAvailabilityAlertSubscription $fosAvailabilityAlertSubscription)
      {
          $spyLocale = $fosAvailabilityAlertSubscription->getSpyLocale();
  
          $localeTransfer = new LocaleTransfer();
  
          $localeTransfer->fromArray($spyLocale->toArray(), true);
  
          return $localeTransfer;
      }
docs: @param \Orm\Zed\AvailabilityAlert\Persistence\FosAvailabilityAlertSubscription $fosAvailabilityAlertSubscription
  
  @return \Generated\Shared\Transfer\LocaleTransfer