40 lines
576 B
YAML
40 lines
576 B
YAML
|
name: Rule
|
||
|
class_comment: null
|
||
|
dependencies: []
|
||
|
properties: []
|
||
|
methods:
|
||
|
- name: passes
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: attribute
|
||
|
- name: value
|
||
|
comment: '# * @deprecated see ValidationRule
|
||
|
|
||
|
# */
|
||
|
|
||
|
# interface Rule
|
||
|
|
||
|
# {
|
||
|
|
||
|
# /**
|
||
|
|
||
|
# * Determine if the validation rule passes.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param string $attribute
|
||
|
|
||
|
# * @param mixed $value
|
||
|
|
||
|
# * @return bool'
|
||
|
- name: message
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Get the validation error message.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return string|array'
|
||
|
traits: []
|
||
|
interfaces: []
|