Install.php 551 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * This file is part of the ForkBB <https://github.com/forkbb>.
  4. *
  5. * @copyright (c) Visman <mio.visman@yandex.ru, https://github.com/MioVisman>
  6. * @license The MIT License (MIT)
  7. */
  8. declare(strict_types=1);
  9. namespace ForkBB\Models\Config;
  10. use ForkBB\Models\Method;
  11. use ForkBB\Models\Config\Config;
  12. class Install extends Method
  13. {
  14. /**
  15. * Заполняет модель данными
  16. */
  17. public function install(): Config
  18. {
  19. $this->model->setAttrs($this->c->forConfig);
  20. return $this->model;
  21. }
  22. }