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

69 lines
1.5 KiB
YAML

name: Unique
class_comment: null
dependencies:
- name: Model
type: class
source: Illuminate\Database\Eloquent\Model
- name: Conditionable
type: class
source: Illuminate\Support\Traits\Conditionable
- name: Stringable
type: class
source: Stringable
properties:
- name: ignore
visibility: protected
comment: '# * The ID that should be ignored.
# *
# * @var mixed'
- name: idColumn
visibility: protected
comment: '# * The name of the ID column.
# *
# * @var string'
methods:
- name: ignore
visibility: public
parameters:
- name: id
- name: idColumn
default: 'null'
comment: "# * The ID that should be ignored.\n# *\n# * @var mixed\n# */\n# protected\
\ $ignore;\n# \n# /**\n# * The name of the ID column.\n# *\n# * @var string\n\
# */\n# protected $idColumn = 'id';\n# \n# /**\n# * Ignore the given ID during\
\ the unique check.\n# *\n# * @param mixed $id\n# * @param string|null $idColumn\n\
# * @return $this"
- name: ignoreModel
visibility: public
parameters:
- name: model
- name: idColumn
default: 'null'
comment: '# * Ignore the given model during the unique check.
# *
# * @param \Illuminate\Database\Eloquent\Model $model
# * @param string|null $idColumn
# * @return $this'
- name: __toString
visibility: public
parameters: []
comment: '# * Convert the rule to a validation string.
# *
# * @return string'
traits:
- Illuminate\Database\Eloquent\Model
- Illuminate\Support\Traits\Conditionable
- Stringable
- Conditionable
interfaces:
- Stringable