platform/api/symfony/Component/Serializer/Normalizer/ObjectToPopulateTrait.yaml
2024-09-02 10:44:11 -07:00

25 lines
643 B
YAML

name: ObjectToPopulateTrait
class_comment: null
dependencies: []
properties: []
methods:
- name: extractObjectToPopulate
visibility: protected
parameters:
- name: class
- name: context
- name: key
default: 'null'
comment: '# * Extract the `object_to_populate` field from the context if it exists
# * and is an instance of the provided $class.
# *
# * @param string $class The class the object should be
# * @param string|null $key They in which to look for the object to populate.
# * Keeps backwards compatibility with `AbstractNormalizer`.'
traits: []
interfaces: []