summaryrefslogtreecommitdiff
path: root/src/Message/Overview.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Message/Overview.php')
-rw-r--r--src/Message/Overview.php50
1 files changed, 47 insertions, 3 deletions
diff --git a/src/Message/Overview.php b/src/Message/Overview.php
index c328acc..0494c16 100644
--- a/src/Message/Overview.php
+++ b/src/Message/Overview.php
@@ -4,22 +4,66 @@ namespace App\Message;
use App\Message\Base;
+/**
+ * Overview message
+ *
+ * @author Phil Burton <phil@pgburton.com>
+ */
class Overview extends Base
{
- protected $message_name = 'opening';
+ /**
+ * Message name to load
+ *
+ * @var string
+ */
+ protected $message_name;
+
+ /**
+ * 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()
{
$this->inject = $this->getInject();
parent::__construct();
}
+ /**
+ * Get our inject value
+ *
+ * @author Phil Burton <phil@pgburton.com>
+ * @return string
+ */
public function getInject()
{
- return time();
+ return (string) time();
}
-} \ No newline at end of file
+}