-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathConfigInterface.php
39 lines (36 loc) · 894 Bytes
/
ConfigInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
namespace ConfigWriter;
/**
* Configuration interface.
*
* @since 2.0.0
*
* @author Filip Š <[email protected]>
*
* @license MIT
*
* @package ConfigWriter
*/
interface ConfigInterface
{
/**
* Adds configuration record.
*
* @param string $key Record's key
* @param mixed|null $value Record's value (optional)
* @param mixed|null $comment Record's comment (optional)
*
* @return Record Added record
*/
public function addRecord($key, $value = null, $comment = null);
/**
* Adds configuration section.
*
* @param string $key Section's key
* @param array $data Section's data (optional)
* @param mixed|null $comment Section's comment (optional)
*
* @return ConfigInterface Added section
*/
public function addSection($key, $data = [], $comment = null);
}