api/laravel/Support/Optional.yaml
2024-09-26 02:03:21 -07:00

117 lines
2.1 KiB
YAML

name: Optional
class_comment: null
dependencies:
- name: ArrayAccess
type: class
source: ArrayAccess
- name: ArrayObject
type: class
source: ArrayObject
- name: Macroable
type: class
source: Illuminate\Support\Traits\Macroable
properties:
- name: value
visibility: protected
comment: '# * The underlying object.
# *
# * @var mixed'
methods:
- name: __construct
visibility: public
parameters:
- name: value
comment: "# * The underlying object.\n# *\n# * @var mixed\n# */\n# protected $value;\n\
# \n# /**\n# * Create a new optional instance.\n# *\n# * @param mixed $value\n\
# * @return void"
- name: __get
visibility: public
parameters:
- name: key
comment: '# * Dynamically access a property on the underlying object.
# *
# * @param string $key
# * @return mixed'
- name: __isset
visibility: public
parameters:
- name: name
comment: '# * Dynamically check a property exists on the underlying object.
# *
# * @param mixed $name
# * @return bool'
- name: offsetExists
visibility: public
parameters:
- name: key
comment: '# * Determine if an item exists at an offset.
# *
# * @param mixed $key
# * @return bool'
- name: offsetGet
visibility: public
parameters:
- name: key
comment: '# * Get an item at a given offset.
# *
# * @param mixed $key
# * @return mixed'
- name: offsetSet
visibility: public
parameters:
- name: key
- name: value
comment: '# * Set the item at a given offset.
# *
# * @param mixed $key
# * @param mixed $value
# * @return void'
- name: offsetUnset
visibility: public
parameters:
- name: key
comment: '# * Unset the item at a given offset.
# *
# * @param string $key
# * @return void'
- name: __call
visibility: public
parameters:
- name: method
- name: parameters
comment: '# * Dynamically pass a method to the underlying object.
# *
# * @param string $method
# * @param array $parameters
# * @return mixed'
traits:
- ArrayAccess
- ArrayObject
- Illuminate\Support\Traits\Macroable
interfaces:
- ArrayAccess