Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
// This file is part of Moodle - http://moodle.org/
3
//
4
// This program is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
 
17
declare(strict_types=1);
18
 
19
namespace mod_edusharing;
20
 
21
use dml_exception;
22
 
23
/**
24
 * Interface AppConfig
25
 *
26
 * Defines interaction with plugin config data.
27
 *
28
 * @author Marian Ziegler <ziegler@edu-sharing.net>
29
 * @package mod_edusharing
30
 */
31
interface AppConfig {
32
    /**
33
     * Function set
34
     *
35
     * @param string $name
36
     * @param mixed $value
37
     * @return void
38
     */
39
    public function set(string $name, mixed $value): void;
40
 
41
    /**
42
     * Function get
43
     *
44
     * @param string $name
45
     * @return string
46
     * @throws dml_exception
47
     */
48
    public function get(string $name): mixed;
49
}