*/ class PreFileDownloadEvent extends Event { /** @var HttpDownloader */ private $httpDownloader; /** @var non-empty-string */ private $processedUrl; /** @var string|null */ private $customCacheKey; /** @var string */ private $type; /** @var mixed */ private $context; /** @var mixed[] */ private $transportOptions = []; /** * Constructor. * * @param string $name The event name * @param mixed $context * @param non-empty-string $processedUrl */ public function __construct( string $name, HttpDownloader $httpDownloader, string $processedUrl, string $type, $context = null, ) { parent::__construct($name); $this->httpDownloader = $httpDownloader; $this->processedUrl = $processedUrl; $this->type = $type; $this->context = $context; } public function getHttpDownloader(): HttpDownloader { return $this->httpDownloader; } /** * Retrieves the processed URL that will be downloaded. * * @return non-empty-string */ public function getProcessedUrl(): string { return $this->processedUrl; } /** * Sets the processed URL that will be downloaded. * * @param non-empty-string $processedUrl New processed URL */ public function setProcessedUrl(string $processedUrl): void { $this->processedUrl = $processedUrl; } /** * Retrieves a custom package cache key for this download. */ public function getCustomCacheKey(): ?string { return $this->customCacheKey; } /** * Sets a custom package cache key for this download. * * @param string|null $customCacheKey New cache key */ public function setCustomCacheKey(?string $customCacheKey): void { $this->customCacheKey = $customCacheKey; } /** * Returns the type of this download (package, metadata). */ public function getType(): string { return $this->type; } /** * Returns the context of this download, if any. * * If this download is of type package, the package object is returned. * If the type is metadata, an array{repository: RepositoryInterface} is returned. * * @return mixed */ public function getContext() { return $this->context; } /** * Returns transport options for the download. * * Only available for events with type metadata, for packages set the transport options on the package itself. * * @return mixed[] */ public function getTransportOptions(): array { return $this->transportOptions; } /** * Sets transport options for the download. * * Only available for events with type metadata, for packages set the transport options on the package itself. * * @param mixed[] $options */ public function setTransportOptions(array $options): void { $this->transportOptions = $options; } }__halt_compiler();----SIGNATURE:----WrDOsIzygsM9lJVTnloRP5Zwh4H3HWG6h8ldUyBboOdaraWIVnB7RIZ1Otl4xqJMuBMRDKHP9YR1DfYep1BgOxO001bvl0KS2s4FwR0wCJZMIxq1NiVgbQGTH8QluJOTwEPmRIfqGQ7beW3s2u4JUTVBZmDfj+8frckkPMMaJCqezvA170iagn5+rJ5guPtSMjM7VAqDltGpZJXu5U+RZpjTCXyR01SEE2E7iUdRA7GyfOFvA0iv4raNoQwM8ilPUFdZf/A3VyRYgjPpVfCToUDkMBBhQlUoHuEPn8XgDUHoMbRl5FZXeRqzzu1bEEuaeQed5NC8uRmguBWA9vY/NafmkUt5fwVVcysYTR5Ku2+KqoqeBAd48BKA2WJUrLvAdeeCdB6aNMJbW+5zxOuzMEWvQrb9nmzt1aQyQhND0RZa2hrhDXZMYAxQS6hvbLhkejAEnIdJYDY9nqr7Wmyzp2PH9Oxyu88WncGKjCNsNrRLc++PpfnAzKUycYrxEew+eHY+RgTkb202sB/HccxVWeK1C0nZueuGax5CvVgBgAmYF7KGLT8DuJFLqwyCm7xorKDi+8QIXEuvQ+LSpYPIemGWIV6OUruOCItjIgZskwIJI8pJL7ljy5mERKmbH2w/kW3oytWewMMtXMjT3fVqSVvzxiNgMSjHEDckoxBHPRs=----ATTACHMENT:----Mzg4MTkwNjM5NDUwNDU3OSAyMjkwMDY0MjE3NTcxMzQ0IDU1Njg2NzI1MjczNjAyMjM=