- /**
- * Gets the factory method.
- *
- * @return string|null The factory method name
- *
- * @deprecated since version 2.6, to be removed in 3.0.
- */
- public function getFactoryMethod($triggerDeprecationError = true)
- {
- if ($triggerDeprecationError) {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
- }
-
- return $this->factoryMethod;
- }
-
- /**
- * Sets the name of the service that acts as a factory using the factory method.
- *
- * @param string $factoryService The factory service id
- *
- * @return $this
- *
- * @deprecated since version 2.6, to be removed in 3.0.
- */
- public function setFactoryService($factoryService, $triggerDeprecationError = true)
- {
- if ($triggerDeprecationError) {
- @trigger_error(sprintf('%s(%s) is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead.', __METHOD__, $factoryService), E_USER_DEPRECATED);
- }
-
- $this->factoryService = $factoryService;
-
- return $this;
- }
-
- /**
- * Gets the factory service id.
- *
- * @return string|null The factory service id
- *
- * @deprecated since version 2.6, to be removed in 3.0.
- */
- public function getFactoryService($triggerDeprecationError = true)
- {
- if ($triggerDeprecationError) {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
- }
-
- return $this->factoryService;
- }
-