api/symfony/Component/Validator/Mapping/Loader/StaticMethodLoader.yaml
2024-09-26 02:03:21 -07:00

51 lines
1.1 KiB
YAML

name: StaticMethodLoader
class_comment: '# * Loads validation metadata by calling a static method on the loaded
class.
# *
# * @author Bernhard Schussek <bschussek@gmail.com>'
dependencies:
- name: MappingException
type: class
source: Symfony\Component\Validator\Exception\MappingException
- name: ClassMetadata
type: class
source: Symfony\Component\Validator\Mapping\ClassMetadata
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: methodName
default: '''loadValidatorMetadata'''
comment: '# * Loads validation metadata by calling a static method on the loaded
class.
# *
# * @author Bernhard Schussek <bschussek@gmail.com>
# */
# class StaticMethodLoader implements LoaderInterface
# {
# /**
# * Creates a new loader.
# *
# * @param string $methodName The name of the static method to call'
- name: loadClassMetadata
visibility: public
parameters:
- name: metadata
comment: null
traits:
- Symfony\Component\Validator\Exception\MappingException
- Symfony\Component\Validator\Mapping\ClassMetadata
interfaces:
- LoaderInterface