api/laravel/Http/Resources/DelegatesToResource.yaml
2024-09-26 02:03:21 -07:00

170 lines
2.9 KiB
YAML

name: DelegatesToResource
class_comment: null
dependencies:
- name: Exception
type: class
source: Exception
- name: ForwardsCalls
type: class
source: Illuminate\Support\Traits\ForwardsCalls
- name: Macroable
type: class
source: Illuminate\Support\Traits\Macroable
properties: []
methods:
- name: getRouteKey
visibility: public
parameters: []
comment: '# * Get the value of the resource''s route key.
# *
# * @return mixed'
- name: getRouteKeyName
visibility: public
parameters: []
comment: '# * Get the route key for the resource.
# *
# * @return string'
- name: resolveRouteBinding
visibility: public
parameters:
- name: value
- name: field
default: 'null'
comment: '# * Retrieve the model for a bound value.
# *
# * @param mixed $value
# * @param string|null $field
# * @return void
# *
# * @throws \Exception'
- name: resolveChildRouteBinding
visibility: public
parameters:
- name: childType
- name: value
- name: field
default: 'null'
comment: '# * Retrieve the model for a bound value.
# *
# * @param string $childType
# * @param mixed $value
# * @param string|null $field
# * @return void
# *
# * @throws \Exception'
- name: offsetExists
visibility: public
parameters:
- name: offset
comment: '# * Determine if the given attribute exists.
# *
# * @param mixed $offset
# * @return bool'
- name: offsetGet
visibility: public
parameters:
- name: offset
comment: '# * Get the value for a given offset.
# *
# * @param mixed $offset
# * @return mixed'
- name: offsetSet
visibility: public
parameters:
- name: offset
- name: value
comment: '# * Set the value for a given offset.
# *
# * @param mixed $offset
# * @param mixed $value
# * @return void'
- name: offsetUnset
visibility: public
parameters:
- name: offset
comment: '# * Unset the value for a given offset.
# *
# * @param mixed $offset
# * @return void'
- name: __isset
visibility: public
parameters:
- name: key
comment: '# * Determine if an attribute exists on the resource.
# *
# * @param string $key
# * @return bool'
- name: __unset
visibility: public
parameters:
- name: key
comment: '# * Unset an attribute on the resource.
# *
# * @param string $key
# * @return void'
- name: __get
visibility: public
parameters:
- name: key
comment: '# * Dynamically get properties from the underlying resource.
# *
# * @param string $key
# * @return mixed'
- name: __call
visibility: public
parameters:
- name: method
- name: parameters
comment: '# * Dynamically pass method calls to the underlying resource.
# *
# * @param string $method
# * @param array $parameters
# * @return mixed'
traits:
- Exception
- Illuminate\Support\Traits\ForwardsCalls
- Illuminate\Support\Traits\Macroable
interfaces: []