platform/api/laravel/Database/Eloquent/Concerns/HidesAttributes.yaml
2024-09-02 10:44:11 -07:00

111 lines
2.5 KiB
YAML

name: HidesAttributes
class_comment: null
dependencies: []
properties:
- name: hidden
visibility: protected
comment: '# * The attributes that should be hidden for serialization.
# *
# * @var array<string>'
- name: visible
visibility: protected
comment: '# * The attributes that should be visible in serialization.
# *
# * @var array<string>'
methods:
- name: getHidden
visibility: public
parameters: []
comment: "# * The attributes that should be hidden for serialization.\n# *\n# *\
\ @var array<string>\n# */\n# protected $hidden = [];\n# \n# /**\n# * The attributes\
\ that should be visible in serialization.\n# *\n# * @var array<string>\n# */\n\
# protected $visible = [];\n# \n# /**\n# * Get the hidden attributes for the model.\n\
# *\n# * @return array<string>"
- name: setHidden
visibility: public
parameters:
- name: hidden
comment: '# * Set the hidden attributes for the model.
# *
# * @param array<string> $hidden
# * @return $this'
- name: getVisible
visibility: public
parameters: []
comment: '# * Get the visible attributes for the model.
# *
# * @return array<string>'
- name: setVisible
visibility: public
parameters:
- name: visible
comment: '# * Set the visible attributes for the model.
# *
# * @param array<string> $visible
# * @return $this'
- name: makeVisible
visibility: public
parameters:
- name: attributes
comment: '# * Make the given, typically hidden, attributes visible.
# *
# * @param array<string>|string|null $attributes
# * @return $this'
- name: makeVisibleIf
visibility: public
parameters:
- name: condition
- name: attributes
comment: '# * Make the given, typically hidden, attributes visible if the given
truth test passes.
# *
# * @param bool|\Closure $condition
# * @param array<string>|string|null $attributes
# * @return $this'
- name: makeHidden
visibility: public
parameters:
- name: attributes
comment: '# * Make the given, typically visible, attributes hidden.
# *
# * @param array<string>|string|null $attributes
# * @return $this'
- name: makeHiddenIf
visibility: public
parameters:
- name: condition
- name: attributes
comment: '# * Make the given, typically visible, attributes hidden if the given
truth test passes.
# *
# * @param bool|\Closure $condition
# * @param array<string>|string|null $attributes
# * @return $this'
traits: []
interfaces: []