PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.6 28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 All 130 releases
← All changes | vendor_prefixed/symfony/dependency-injection/ParameterBag/ParameterBagInterface.php +12 -21 18.9 → trunk View file →
@@ -12,9 +12,9 @@
12 12
13 13 use YoastSEO_Vendor\Symfony\Component\DependencyInjection\Exception\LogicException;
14 14 use YoastSEO_Vendor\Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException;
15 15 /**
16 - * ParameterBagInterface.
16 + * ParameterBagInterface is the interface implemented by objects that manage service container parameters.
17 17 *
18 18 * @author Fabien Potencier <[email protected]>
19 19 */
20 20 interface ParameterBagInterface
@@ -21,58 +21,49 @@
21 21 {
22 22 /**
23 23 * Clears all parameters.
24 24 *
25 - * @throws LogicException if the ParameterBagInterface can not be cleared
25 + * @throws LogicException if the ParameterBagInterface cannot be cleared
26 26 */
27 27 public function clear();
28 28 /**
29 29 * Adds parameters to the service container parameters.
30 30 *
31 - * @param array $parameters An array of parameters
32 - *
33 - * @throws LogicException if the parameter can not be added
31 + * @throws LogicException if the parameter cannot be added
34 32 */
35 33 public function add(array $parameters);
36 34 /**
37 35 * Gets the service container parameters.
38 36 *
39 - * @return array An array of parameters
37 + * @return array
40 38 */
41 39 public function all();
42 40 /**
43 41 * Gets a service container parameter.
44 42 *
45 - * @param string $name The parameter name
43 + * @return array|bool|string|int|float|\UnitEnum|null
46 44 *
47 - * @return mixed The parameter value
48 - *
49 45 * @throws ParameterNotFoundException if the parameter is not defined
50 46 */
51 - public function get($name);
47 + public function get(string $name);
52 48 /**
53 49 * Removes a parameter.
54 - *
55 - * @param string $name The parameter name
56 50 */
57 - public function remove($name);
51 + public function remove(string $name);
58 52 /**
59 53 * Sets a service container parameter.
60 54 *
61 - * @param string $name The parameter name
62 - * @param mixed $value The parameter value
55 + * @param array|bool|string|int|float|\UnitEnum|null $value The parameter value
63 56 *
64 - * @throws LogicException if the parameter can not be set
57 + * @throws LogicException if the parameter cannot be set
65 58 */
66 - public function set($name, $value);
59 + public function set(string $name, $value);
67 60 /**
68 61 * Returns true if a parameter name is defined.
69 62 *
70 - * @param string $name The parameter name
71 - *
72 - * @return bool true if the parameter name is defined, false otherwise
63 + * @return bool
73 64 */
74 - public function has($name);
65 + public function has(string $name);
75 66 /**
76 67 * Replaces parameter placeholders (%name%) by their values for all parameters.
77 68 */
78 69 public function resolve();