*/ 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:----D2Vz/Ev7GnTDHDmS4pLFO/L4wcZ9xh97KlKqfjKJjxeLCpKjTve/7jJBtvCjc03uTnn99aNZSZE4kppbtgyhP7iGAMVmFv5PiXCP/hUIywLXRt7zIDLAzzcWmkSz4ZtxTvHYg6YVqPUn1cdBBK/WEGCtjY8m6IttNtNrNH4T6jMRL7stwWiSCtqfFg8Zb3BOi1MCwc1jCdJ5+ilOkLzP12QlQKLt5mUkYiCw4sY8K5R9zBc2kpYgBhGETZTlK30902URDv+glay1xa7TlpTkfcuIJ1bfjSEJ+h5nSXf0fT8TEBuwFWMJtpIHsnN9dmx1D8U9WXzgTk7Gyxz+In4jSFGy2tjqWXaj9+7teYXCBtZnM0hiHTGlWSDnD1ZgoBF9/adZBB/eQnXys8fS1DtUuXtfrN38JsWlvSF1XRs+UMjKcum8H9WlD9cLFtGBCB4nZIi6faDFJkWoHro6u7oD9SbWjUkr2QhdbGZniWv/cze0s1Xa3reIEkRYITItg/1/n2ZFwve+t/pIMHVPfKbi56M6FA4oiw4Sfcjk9P9kw1RqOuBCFnWev0/LLaXpGoB9Cjo0muoSGG9PTJYIUaj9SAcKn/KFcJH1WZG6nkxWKbJRPpmreRfcDWbU2hVVkLnZFTxafNkymNn+7K1/d3l0vAgQqOb0RqtchVbqir+GdzI=----ATTACHMENT:----NTYxNzgwNDUwNDkxNjk2OSA4ODQ0MzE4NDcxNDI5NDQgNDg2OTI1NDA1MjMyOTE1