1 | <?php |
||
18 | final class Settings { |
||
19 | |||
20 | /** |
||
21 | * Constructs a new instance of the settings object from global state. |
||
22 | * |
||
23 | * @since 1.0 |
||
24 | * |
||
25 | * @param array $globalVariables |
||
26 | * |
||
27 | * @return Settings |
||
28 | */ |
||
29 | public static function newFromGlobals( array $globalVariables ) { |
||
32 | |||
33 | /** |
||
34 | * @since 1.0 |
||
35 | * |
||
36 | * @var array |
||
37 | */ |
||
38 | private $settings; |
||
39 | |||
40 | /** |
||
41 | * Constructor. |
||
42 | * |
||
43 | * @since 1.0 |
||
44 | * |
||
45 | * @param array $settings |
||
46 | */ |
||
47 | 4 | public function __construct( array $settings ) { |
|
50 | |||
51 | /** |
||
52 | * Returns the setting with the provided name. |
||
53 | * The specified setting needs to exist. |
||
54 | * |
||
55 | * @since 1.0 |
||
56 | * |
||
57 | * @param string $settingName |
||
58 | * |
||
59 | * @return mixed |
||
60 | */ |
||
61 | 3 | public function get( $settingName ) { |
|
64 | |||
65 | } |
||
66 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.