From 79bc514b2dc91f997ed662427ffb0e0cb6c7a735 Mon Sep 17 00:00:00 2001 From: Fbenas Date: Tue, 21 Mar 2017 23:29:59 +0000 Subject: Simple welcome page --- src/Message/Name.php | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/Message/Name.php (limited to 'src/Message') 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 @@ + + */ +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 + */ + public function __construct(Handler $handler) + { + $this->inject = $this->getInject(); + parent::__construct($handler); + } + + /** + * Get our inject value + * + * @author Phil Burton + * @return string + */ + public function getInject() + { + return (string) time(); + } +} -- cgit v1.2.3