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.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 19.0 All 129 releases
← All changes | vendor_prefixed/symfony/dependency-injection/ContainerInterface.php +19 -35 18.6 → trunk View file →
@@ -21,19 +21,17 @@
21 21 * @author Johannes M. Schmitt <[email protected]>
22 22 */
23 23 interface ContainerInterface extends \YoastSEO_Vendor\Psr\Container\ContainerInterface
24 24 {
25 - const EXCEPTION_ON_INVALID_REFERENCE = 1;
26 - const NULL_ON_INVALID_REFERENCE = 2;
27 - const IGNORE_ON_INVALID_REFERENCE = 3;
28 - const IGNORE_ON_UNINITIALIZED_REFERENCE = 4;
25 + public const RUNTIME_EXCEPTION_ON_INVALID_REFERENCE = 0;
26 + public const EXCEPTION_ON_INVALID_REFERENCE = 1;
27 + public const NULL_ON_INVALID_REFERENCE = 2;
28 + public const IGNORE_ON_INVALID_REFERENCE = 3;
29 + public const IGNORE_ON_UNINITIALIZED_REFERENCE = 4;
29 30 /**
30 31 * Sets a service.
31 - *
32 - * @param string $id The service identifier
33 - * @param object|null $service The service instance
34 32 */
35 - public function set($id, $service);
33 + public function set(string $id, ?object $service);
36 34 /**
37 35 * Gets a service.
38 36 *
39 37 * @param string $id The service identifier
@@ -38,9 +36,9 @@
38 36 *
39 37 * @param string $id The service identifier
40 38 * @param int $invalidBehavior The behavior when the service does not exist
41 39 *
42 - * @return object|null The associated service
40 + * @return object|null
43 41 *
44 42 * @throws ServiceCircularReferenceException When a circular reference is detected
45 43 * @throws ServiceNotFoundException When the service is not defined
46 44 *
@@ -45,47 +43,33 @@
45 43 * @throws ServiceNotFoundException When the service is not defined
46 44 *
47 45 * @see Reference
48 46 */
49 - public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE);
47 + public function get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE);
50 48 /**
51 - * Returns true if the given service is defined.
52 - *
53 - * @param string $id The service identifier
54 - *
55 - * @return bool true if the service is defined, false otherwise
49 + * @return bool
56 50 */
57 - public function has($id);
51 + public function has(string $id);
58 52 /**
59 53 * Check for whether or not a service has been initialized.
60 54 *
61 - * @param string $id
62 - *
63 - * @return bool true if the service has been initialized, false otherwise
55 + * @return bool
64 56 */
65 - public function initialized($id);
57 + public function initialized(string $id);
66 58 /**
67 - * Gets a parameter.
59 + * @return array|bool|string|int|float|\UnitEnum|null
68 60 *
69 - * @param string $name The parameter name
70 - *
71 - * @return mixed The parameter value
72 - *
73 61 * @throws InvalidArgumentException if the parameter is not defined
74 62 */
75 - public function getParameter($name);
63 + public function getParameter(string $name);
76 64 /**
77 - * Checks if a parameter exists.
78 - *
79 - * @param string $name The parameter name
80 - *
81 - * @return bool The presence of parameter in container
65 + * @return bool
82 66 */
83 - public function hasParameter($name);
67 + public function hasParameter(string $name);
84 68 /**
85 69 * Sets a parameter.
86 70 *
87 - * @param string $name The parameter name
88 - * @param mixed $value The parameter value
71 + * @param string $name The parameter name
72 + * @param array|bool|string|int|float|\UnitEnum|null $value The parameter value
89 73 */
90 - public function setParameter($name, $value);
74 + public function setParameter(string $name, $value);
91 75 }