api/laravel/Validation/Rules/Dimensions.yaml

121 lines
2.2 KiB
YAML
Raw Normal View History

2024-09-26 09:03:21 +00:00
name: Dimensions
class_comment: null
dependencies:
- name: Conditionable
type: class
source: Illuminate\Support\Traits\Conditionable
- name: Stringable
type: class
source: Stringable
- name: Conditionable
type: class
source: Conditionable
properties:
- name: constraints
visibility: protected
comment: '# * The constraints for the dimensions rule.
# *
# * @var array'
methods:
- name: __construct
visibility: public
parameters:
- name: constraints
default: '[]'
comment: "# * The constraints for the dimensions rule.\n# *\n# * @var array\n# */\n\
# protected $constraints = [];\n# \n# /**\n# * Create a new dimensions rule instance.\n\
# *\n# * @param array $constraints\n# * @return void"
- name: width
visibility: public
parameters:
- name: value
comment: '# * Set the "width" constraint.
# *
# * @param int $value
# * @return $this'
- name: height
visibility: public
parameters:
- name: value
comment: '# * Set the "height" constraint.
# *
# * @param int $value
# * @return $this'
- name: minWidth
visibility: public
parameters:
- name: value
comment: '# * Set the "min width" constraint.
# *
# * @param int $value
# * @return $this'
- name: minHeight
visibility: public
parameters:
- name: value
comment: '# * Set the "min height" constraint.
# *
# * @param int $value
# * @return $this'
- name: maxWidth
visibility: public
parameters:
- name: value
comment: '# * Set the "max width" constraint.
# *
# * @param int $value
# * @return $this'
- name: maxHeight
visibility: public
parameters:
- name: value
comment: '# * Set the "max height" constraint.
# *
# * @param int $value
# * @return $this'
- name: ratio
visibility: public
parameters:
- name: value
comment: '# * Set the "ratio" constraint.
# *
# * @param float $value
# * @return $this'
- name: __toString
visibility: public
parameters: []
comment: '# * Convert the rule to a validation string.
# *
# * @return string'
traits:
- Illuminate\Support\Traits\Conditionable
- Stringable
- Conditionable
interfaces:
- Stringable