106 lines
2.2 KiB
YAML
106 lines
2.2 KiB
YAML
name: GetterMetadata
|
|
class_comment: '# * Stores all metadata needed for validating a class property via
|
|
its getter
|
|
|
|
# * method.
|
|
|
|
# *
|
|
|
|
# * A property getter is any method that is equal to the property''s name,
|
|
|
|
# * prefixed with "get", "is" or "has". That method will be used to access the
|
|
|
|
# * property''s value.
|
|
|
|
# *
|
|
|
|
# * The getter will be invoked by reflection, so the access of private and
|
|
|
|
# * protected getters is supported.
|
|
|
|
# *
|
|
|
|
# * This class supports serialization and cloning.
|
|
|
|
# *
|
|
|
|
# * @author Bernhard Schussek <bschussek@gmail.com>
|
|
|
|
# *
|
|
|
|
# * @see PropertyMetadataInterface'
|
|
dependencies:
|
|
- name: ValidatorException
|
|
type: class
|
|
source: Symfony\Component\Validator\Exception\ValidatorException
|
|
properties: []
|
|
methods:
|
|
- name: __construct
|
|
visibility: public
|
|
parameters:
|
|
- name: class
|
|
- name: property
|
|
- name: method
|
|
default: 'null'
|
|
comment: '# * Stores all metadata needed for validating a class property via its
|
|
getter
|
|
|
|
# * method.
|
|
|
|
# *
|
|
|
|
# * A property getter is any method that is equal to the property''s name,
|
|
|
|
# * prefixed with "get", "is" or "has". That method will be used to access the
|
|
|
|
# * property''s value.
|
|
|
|
# *
|
|
|
|
# * The getter will be invoked by reflection, so the access of private and
|
|
|
|
# * protected getters is supported.
|
|
|
|
# *
|
|
|
|
# * This class supports serialization and cloning.
|
|
|
|
# *
|
|
|
|
# * @author Bernhard Schussek <bschussek@gmail.com>
|
|
|
|
# *
|
|
|
|
# * @see PropertyMetadataInterface
|
|
|
|
# */
|
|
|
|
# class GetterMetadata extends MemberMetadata
|
|
|
|
# {
|
|
|
|
# /**
|
|
|
|
# * @param string $class The class the getter is defined on
|
|
|
|
# * @param string $property The property which the getter returns
|
|
|
|
# * @param string|null $method The method that is called to retrieve the value
|
|
being validated (null for auto-detection)
|
|
|
|
# *
|
|
|
|
# * @throws ValidatorException'
|
|
- name: getPropertyValue
|
|
visibility: public
|
|
parameters:
|
|
- name: object
|
|
comment: null
|
|
- name: newReflectionMember
|
|
visibility: protected
|
|
parameters:
|
|
- name: objectOrClassName
|
|
comment: null
|
|
traits:
|
|
- Symfony\Component\Validator\Exception\ValidatorException
|
|
interfaces: []
|