*/ class Welcome extends Base { /** * The list of vars we need to inject * * @var array */ protected $injects = ['name', 'gameCode']; /** * The array of important vars * * @var string */ protected $important = ['name', 'gameCode']; /** * Inject * @var string */ public $name; /** * Second inject * * @var string */ public $gameCode; /** * 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(); } }