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