platform/api/symfony/Component/DependencyInjection/ChildDefinition.yaml
2024-09-02 10:44:11 -07:00

90 lines
2.1 KiB
YAML

name: ChildDefinition
class_comment: '# * This definition extends another definition.
# *
# * @author Johannes M. Schmitt <schmittjoh@gmail.com>'
dependencies:
- name: InvalidArgumentException
type: class
source: Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
- name: OutOfBoundsException
type: class
source: Symfony\Component\DependencyInjection\Exception\OutOfBoundsException
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: parent
comment: '# * This definition extends another definition.
# *
# * @author Johannes M. Schmitt <schmittjoh@gmail.com>
# */
# class ChildDefinition extends Definition
# {
# /**
# * @param string $parent The id of Definition instance to decorate'
- name: getParent
visibility: public
parameters: []
comment: '# * Returns the Definition to inherit from.'
- name: setParent
visibility: public
parameters:
- name: parent
comment: '# * Sets the Definition to inherit from.
# *
# * @return $this'
- name: getArgument
visibility: public
parameters:
- name: index
comment: '# * Gets an argument to pass to the service constructor/factory method.
# *
# * If replaceArgument() has been used to replace an argument, this method
# * will return the replacement value.
# *
# * @throws OutOfBoundsException When the argument does not exist'
- name: replaceArgument
visibility: public
parameters:
- name: index
- name: value
comment: '# * You should always use this method when overwriting existing arguments
# * of the parent definition.
# *
# * If you directly call setArguments() keep in mind that you must follow
# * certain conventions when you want to overwrite the arguments of the
# * parent definition, otherwise your arguments will only be appended.
# *
# * @return $this
# *
# * @throws InvalidArgumentException when $index isn''t an integer'
traits:
- Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
- Symfony\Component\DependencyInjection\Exception\OutOfBoundsException
interfaces: []