platform/api/laravel/Support/Onceable.yaml
2024-09-02 10:44:11 -07:00

67 lines
1.4 KiB
YAML

name: Onceable
class_comment: null
dependencies:
- name: Closure
type: class
source: Closure
- name: ReflectionClosure
type: class
source: Laravel\SerializableClosure\Support\ReflectionClosure
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: hash
- name: object
- name: callable
comment: '# * Create a new onceable instance.
# *
# * @param string $hash
# * @param object|null $object
# * @param callable $callable
# * @return void'
- name: tryFromTrace
visibility: public
parameters:
- name: trace
- name: callable
comment: '# * Tries to create a new onceable instance from the given trace.
# *
# * @param array<int, array<string, mixed>> $trace
# * @return static|null'
- name: objectFromTrace
visibility: protected
parameters:
- name: trace
comment: '# * Computes the object of the onceable from the given trace, if any.
# *
# * @param array<int, array<string, mixed>> $trace
# * @return object|null'
- name: hashFromTrace
visibility: protected
parameters:
- name: trace
- name: callable
comment: '# * Computes the hash of the onceable from the given trace.
# *
# * @param array<int, array<string, mixed>> $trace
# * @return string|null'
traits:
- Closure
- Laravel\SerializableClosure\Support\ReflectionClosure
interfaces: []