aboutsummaryrefslogtreecommitdiffhomepage
path: root/api/Posts/Events/PostWasDeleted.php
diff options
context:
space:
mode:
Diffstat (limited to 'api/Posts/Events/PostWasDeleted.php')
-rw-r--r--api/Posts/Events/PostWasDeleted.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/api/Posts/Events/PostWasDeleted.php b/api/Posts/Events/PostWasDeleted.php
new file mode 100644
index 0000000..5def797
--- /dev/null
+++ b/api/Posts/Events/PostWasDeleted.php
@@ -0,0 +1,16 @@
+<?php
+
+namespace Api\Posts\Events;
+
+use Infrastructure\Events\Event;
+use Api\Posts\Models\Post;
+
+class PostWasDeleted extends Event
+{
+ public $post;
+
+ public function __construct(Post $post)
+ {
+ $this->post = $post;
+ }
+}