1 | <?php |
||
23 | class Dumper |
||
24 | { |
||
25 | /** @var Server\ServerInterface a server instance */ |
||
26 | private $server; |
||
27 | |||
28 | /** @var int number of spaces to indent */ |
||
29 | private $indentation = 4; |
||
30 | |||
31 | /** |
||
32 | * Setter for the server instance. |
||
33 | * |
||
34 | * @see Server\ServerInterface Server Documentation |
||
35 | * |
||
36 | * @param Server\ServerInterface $server the server instance |
||
37 | */ |
||
38 | 1 | public function setServer(ServerInterface $server) |
|
44 | |||
45 | /** |
||
46 | * Dumps recursively the active configuration as a file. |
||
47 | * |
||
48 | * @param DirectiveInterface $activeConfig the active configuration to dump |
||
49 | * @param int $spaces the indentation spaces |
||
50 | * |
||
51 | * @return string the file output |
||
52 | */ |
||
53 | 1 | public function dump(DirectiveInterface $activeConfig, $spaces = 0) |
|
83 | } |
||
84 |