1 | <?php namespace Comodojo\Foundation\Base; |
||
19 | class Configuration { |
||
20 | |||
21 | use ConfigurationParametersTrait; |
||
22 | |||
23 | /** |
||
24 | * Create a configuration object from array of values |
||
25 | * |
||
26 | * @param array $configuration |
||
27 | * @return self |
||
|
|||
28 | */ |
||
29 | 8 | public function __construct(array $configuration = []) { |
|
34 | |||
35 | /** |
||
36 | * Check if a property is defined |
||
37 | * |
||
38 | * @deprecated |
||
39 | * @see Configuration::has() |
||
40 | * |
||
41 | * @param string $property |
||
42 | * @return bool |
||
43 | */ |
||
44 | 2 | public function isDefined($property) { |
|
49 | |||
50 | /** |
||
51 | * Merge a bundle of properties into actual configuration model |
||
52 | * |
||
53 | * @param array $properties |
||
54 | * @return self |
||
55 | */ |
||
56 | 1 | public function merge(array $properties) { |
|
63 | |||
64 | 1 | public static function create(array $configuration = []) { |
|
69 | |||
70 | } |
||
71 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.