*/ 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(); } }