1 | <?php |
||
20 | class DefaultParameters implements ContainerAwareInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var |
||
24 | */ |
||
25 | private static $instance; |
||
26 | |||
27 | /** |
||
28 | * @var ContainerInterface |
||
29 | */ |
||
30 | private $container; |
||
31 | |||
32 | /** |
||
33 | * @param ContainerInterface $container |
||
34 | */ |
||
35 | private function __construct(ContainerInterface $container) |
||
39 | |||
40 | /** |
||
41 | * defineDefaultConfiguration. |
||
42 | * |
||
43 | * @param array $parameters |
||
44 | */ |
||
45 | public function defineDefaultConfiguration(array $parameters) |
||
70 | |||
71 | /** |
||
72 | * parameterExists. |
||
73 | * |
||
74 | * @param $name |
||
75 | * |
||
76 | * @return bool|mixed false if not defined, the parameter if exists |
||
77 | */ |
||
78 | public function parameterExists($name) |
||
86 | |||
87 | /** |
||
88 | * @return self |
||
89 | */ |
||
90 | public static function getInstance(ContainerInterface $container) |
||
98 | |||
99 | /** |
||
100 | * Sets the Container. |
||
101 | * |
||
102 | * @param ContainerInterface|null $container A ContainerInterface instance or null |
||
103 | * |
||
104 | * @api |
||
105 | */ |
||
106 | public function setContainer(ContainerInterface $container = null) |
||
110 | } |
||
111 |