<?php
/**
 * baserCMS :  Based Website Development Project <https://basercms.net>
 * Copyright (c) NPO baser foundation <https://baserfoundation.org/>
 *
 * @copyright     Copyright (c) NPO baser foundation
 * @link          https://basercms.net baserCMS Project
 * @since         5.0.0
 * @license       https://basercms.net/license/index.html MIT License
 */

namespace BaserCore\Controller\Admin;

use BaserCore\Error\BcException;
use BaserCore\Service\Admin\DashboardAdminServiceInterface;
use BaserCore\Annotation\NoTodo;
use BaserCore\Annotation\Checked;
use BaserCore\Annotation\UnitTest;
use function PHPUnit\Framework\throwException;

/**
 * Class DashboardController
 * @uses DashboardController
 */
class DashboardController extends BcAdminAppController
{

    /**
     * [ADMIN] 管理者ダッシュボードページを表示する
     *
     * @return void
     * @checked
     * @noTodo
     * @unitTest
     */
    public function index(DashboardAdminServiceInterface $service)
    {
        $this->setTitle(__d('baser_core', 'ダッシュボード'));
        $this->set($service->getViewVarsForIndex(5));
    }

}
