26 lines
643 B
YAML
26 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: []
|