Skip to content

Firefly III: a personal finances manager

New events.

James Coleb3a419b2f3db
diff --git a/app/Handlers/Events/FireRulesForStore.php b/app/Handlers/Events/FireRulesForStore.php
new file mode 100644
index 0000000000..d3acea2e4d
--- /dev/null
+++ b/app/Handlers/Events/FireRulesForStore.php
@@ -0,0 +1,45 @@
+<?php
+/**
+ * FireRulesForStore.php
+ * Copyright (C) 2016 Sander Dorigo
+ *
+ * This software may be modified and distributed under the terms
+ * of the MIT license. See the LICENSE file for details.
+ */
+
+namespace FireflyIII\Handlers\Events;
+
+
+use FireflyIII\Events\TransactionJournalStored;
+
+/**
+ * Class FireRulesForStore
+ *
+ * @package FireflyIII\Handlers\Events
+ */
+class FireRulesForStore
+{
+ /**
+ * Create the event handler.
+ *
+ * @codeCoverageIgnore
+ *
+ */
+ public function __construct()
+ {
+ //
+ }
+
+ /**
+ * Connect a new transaction journal to any related piggy banks.
+ *
+ * @param TransactionJournalStored $event
+ *
+ * @return boolean
+ */
+ public function handle(TransactionJournalStored $event)
+ {
+ // get all the user's rule groups, with the rules, order by 'order'.
+
+ }
+}
\ No newline at end of file
diff --git a/app/Handlers/Events/FireRulesForUpdate.php b/app/Handlers/Events/FireRulesForUpdate.php
new file mode 100644
index 0000000000..fc2da15d20
--- /dev/null
+++ b/app/Handlers/Events/FireRulesForUpdate.php
@@ -0,0 +1,40 @@
+<?php
+/**
+ * FireRulesForUpdate.php
+ * Copyright (C) 2016 Sander Dorigo
+ *
+ * This software may be modified and distributed under the terms
+ * of the MIT license. See the LICENSE file for details.
+ */
+
+namespace FireflyIII\Handlers\Events;
+use FireflyIII\Events\TransactionJournalUpdated;
+
+/**
+ * Class FireRulesForUpdate
+ *
+ * @package FireflyIII\Handlers\Events
+ */
+class FireRulesForUpdate
+{
+ /**
+ * Create the event handler.
+ *
+ */
+ public function __construct()
+ {
+ //
+ }
+
+ /**
+ * Handle the event.
+ *
+ * @param TransactionJournalUpdated $event
+ *
+ * @return void
+ */
+ public function handle(TransactionJournalUpdated $event)
+ {
+
+ }
+}
\ No newline at end of file