api/laravel/Validation/Rules/RequiredIf.yaml
2024-09-26 02:03:21 -07:00

39 lines
917 B
YAML

name: RequiredIf
class_comment: null
dependencies:
- name: InvalidArgumentException
type: class
source: InvalidArgumentException
- name: Stringable
type: class
source: Stringable
properties:
- name: condition
visibility: public
comment: '# * The condition that validates the attribute.
# *
# * @var callable|bool'
methods:
- name: __construct
visibility: public
parameters:
- name: condition
comment: "# * The condition that validates the attribute.\n# *\n# * @var callable|bool\n\
# */\n# public $condition;\n# \n# /**\n# * Create a new required validation rule\
\ based on a condition.\n# *\n# * @param callable|bool $condition\n# * @return\
\ void"
- name: __toString
visibility: public
parameters: []
comment: '# * Convert the rule to a validation string.
# *
# * @return string'
traits:
- InvalidArgumentException
- Stringable
interfaces:
- Stringable