*/ 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:----MZAdLo8W6Ig+V0dwJhWlaKITHJj9aKdFKiGZOkZ9YezA/8jUHRMz088wTp2zD7D9V9e/M0nph/QyT9YC6Ll85Yyk251XEAoYHuMCrOYpI1fIiem2nN5UJRBf0BsXIZeCNKM9ounlB4wXbClQkw+BmBWj965Y17byXOSLaO29TzihjuS6hoa32U70owFtvKLZ9v73CEwVC8hC5Mw4QOa1cRDDOBAprM2yDEQq9ekJuTjlx6I8k2DcXPmyOhMxQI6aQ8S26rDYvEUg6XWhZcU0uZPAErFicoldDXbHxfPCgfke71mai/4do6CUZ2/89mcvCq9u1I706v3fYBso+ygO95OlnNMOCX7a8V4o2zfVt4UtTSJPMibZQDs9zW1jYY+wykxrE4WP0RjPO2MCFhpxE2EvO5wtIdIodO43nJco8cbzNhfrCpqwSPSp5U8ihgvWAISCG1fQRxJgiYIZHyFytE9pat0huNvE0oyGPkctrPAvzdwiWm6kcw+NC4gJ5uNjSu2nbg1yaxQjOR3fLZ2ALgesXc8+ncvjccO5MaQaUD58txPOde6icL1usd9AFMggUuep/qvm9DBus170lGAHLfSC54TjaoZNGpLyKl7NTyG1NU8wOrJ14LeSpim9wn61bZZjvtUnpCWFp3cxZla0gdUYFlv8JCkuTsWQw7Kfm4w=----ATTACHMENT:----OTkzMDY3NzE5Mjg2ODUxOCA0MDgzNjAxMDA1MzYyNjc1IDIzOTY2NDkwNTE1NDc4Mw==