ConfigureInterface
last analyzed

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
configure() 0 1 ?
1
<?php
2
3
namespace Anax\Common;
4
5
/**
6
 * Interface for classes needing access to configuration files.
7
 */
8
interface ConfigureInterface
9
{
10
    /**
11
     * Read configuration from file or array, if a file, first check in
12
     * ANAX_APP_PATH/config and then in ANAX_INSTALL_PATH/config.
13
     *
14
     * @param []|string $what is an array with key/value config options
0 ignored issues
show
Documentation introduced by
The doc-type []|string could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
15
     *                        or a file to be included which returns such
16
     *                        an array.
17
     *
18
     * @throws Exception when argument if not a filer nor an array.
19
     *
20
     * @return self for chaining.
21
     */
22
    public function configure($what);
23
}
24