summaryrefslogtreecommitdiff
path: root/src/Message/Name.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Message/Name.php')
-rw-r--r--src/Message/Name.php62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/Message/Name.php b/src/Message/Name.php
new file mode 100644
index 0000000..631fdd2
--- /dev/null
+++ b/src/Message/Name.php
@@ -0,0 +1,62 @@
+<?php
+
+namespace App\Message;
+
+use App\Message\Base;
+
+/**
+ * Name message
+ *
+ * @author Phil Burton <phil@pgburton.com>
+ */
+class Name extends Base
+{
+ /**
+ * The list of vars we need to inject
+ *
+ * @var array
+ */
+ protected $injects = ['inject', 'second'];
+
+ /**
+ * The array of important vars
+ *
+ * @var string
+ */
+ protected $important = ['inject'];
+
+ /**
+ * Inject
+ * @var string
+ */
+ public $inject;
+
+ /**
+ * Second inject
+ *
+ * @var string
+ */
+ public $second = "second";
+
+ /**
+ * Construct to set any inject vars from functions if required
+ *
+ * @author Phil Burton <phil@pgburton.com>
+ */
+ public function __construct(Handler $handler)
+ {
+ $this->inject = $this->getInject();
+ parent::__construct($handler);
+ }
+
+ /**
+ * Get our inject value
+ *
+ * @author Phil Burton <phil@pgburton.com>
+ * @return string
+ */
+ public function getInject()
+ {
+ return (string) time();
+ }
+}