aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/plugin/post_file_download_event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/plugin/post_file_download_event.rs')
-rw-r--r--crates/shirabe/src/plugin/post_file_download_event.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/crates/shirabe/src/plugin/post_file_download_event.rs b/crates/shirabe/src/plugin/post_file_download_event.rs
index 2124f1e..9ba946e 100644
--- a/crates/shirabe/src/plugin/post_file_download_event.rs
+++ b/crates/shirabe/src/plugin/post_file_download_event.rs
@@ -1,8 +1,10 @@
//! ref: composer/src/Composer/Plugin/PostFileDownloadEvent.php
+use indexmap::IndexMap;
use shirabe_php_shim::PhpMixed;
use crate::event_dispatcher::Event;
+use crate::event_dispatcher::EventInterface;
#[derive(Debug)]
pub struct PostFileDownloadEvent {
@@ -57,3 +59,25 @@ impl PostFileDownloadEvent {
&self.r#type
}
}
+
+impl EventInterface for PostFileDownloadEvent {
+ fn get_name(&self) -> &str {
+ self.inner.get_name()
+ }
+
+ fn get_arguments(&self) -> &Vec<String> {
+ self.inner.get_arguments()
+ }
+
+ fn get_flags(&self) -> &IndexMap<String, PhpMixed> {
+ self.inner.get_flags()
+ }
+
+ fn is_propagation_stopped(&self) -> bool {
+ self.inner.is_propagation_stopped()
+ }
+
+ fn stop_propagation(&mut self) {
+ self.inner.stop_propagation();
+ }
+}