]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - application/config/ConfigIO.php
Apply PHP Code Beautifier on source code for linter automatic fixes
[github/shaarli/Shaarli.git] / application / config / ConfigIO.php
1 <?php
2
3 namespace Shaarli\Config;
4
5 /**
6 * Interface ConfigIO
7 *
8 * This describes how Config types should store their configuration.
9 */
10 interface ConfigIO
11 {
12 /**
13 * Read configuration.
14 *
15 * @param string $filepath Config file absolute path.
16 *
17 * @return array All configuration in an array.
18 */
19 public function read($filepath);
20
21 /**
22 * Write configuration.
23 *
24 * @param string $filepath Config file absolute path.
25 * @param array $conf All configuration in an array.
26 */
27 public function write($filepath, $conf);
28
29 /**
30 * Get config file extension according to config type.
31 *
32 * @return string Config file extension.
33 */
34 public function getExtension();
35 }