64 lines
1.1 KiB
YAML
64 lines
1.1 KiB
YAML
|
name: CastsAttributes
|
||
|
class_comment: null
|
||
|
dependencies:
|
||
|
- name: Model
|
||
|
type: class
|
||
|
source: Illuminate\Database\Eloquent\Model
|
||
|
properties: []
|
||
|
methods:
|
||
|
- name: get
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: model
|
||
|
- name: key
|
||
|
- name: value
|
||
|
- name: attributes
|
||
|
comment: '# * @template TGet
|
||
|
|
||
|
# * @template TSet
|
||
|
|
||
|
# */
|
||
|
|
||
|
# interface CastsAttributes
|
||
|
|
||
|
# {
|
||
|
|
||
|
# /**
|
||
|
|
||
|
# * Transform the attribute from the underlying model values.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param \Illuminate\Database\Eloquent\Model $model
|
||
|
|
||
|
# * @param string $key
|
||
|
|
||
|
# * @param mixed $value
|
||
|
|
||
|
# * @param array<string, mixed> $attributes
|
||
|
|
||
|
# * @return TGet|null'
|
||
|
- name: set
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: model
|
||
|
- name: key
|
||
|
- name: value
|
||
|
- name: attributes
|
||
|
comment: '# * Transform the attribute to its underlying model values.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param \Illuminate\Database\Eloquent\Model $model
|
||
|
|
||
|
# * @param string $key
|
||
|
|
||
|
# * @param TSet|null $value
|
||
|
|
||
|
# * @param array<string, mixed> $attributes
|
||
|
|
||
|
# * @return mixed'
|
||
|
traits:
|
||
|
- Illuminate\Database\Eloquent\Model
|
||
|
interfaces: []
|