<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

namespace local_kid\output;

defined('MOODLE_INTERNAL') || die();

/**
 * Renderable for a screen not yet built (Phase 0 stand-in for the 5
 * functional screens, replaced one by one in later phases).
 */
class placeholder_page implements \renderable, \templatable {

    /** @var string */
    protected $title;

    public function __construct(string $title) {
        $this->title = $title;
    }

    public function export_for_template(\renderer_base $output): array {
        return [
            'title' => $this->title,
            'message' => get_string('placeholder_notice', 'local_kid'),
        ];
    }
}
