Onceable
class Onceable
Methods
__construct(string $hash, object|null $object, callable $callable)
Create a new onceable instance.
static Onceable|null
tryFromTrace(array $trace, callable $callable)
Tries to create a new onceable instance from the given trace.
static null|object
objectFromTrace(array $trace)
Computes the object of the onceable from the given trace, if any.
static null|string
hashFromTrace(array $trace, callable $callable)
Computes the hash of the onceable from the given trace.
Details
at line 18
__construct(string $hash, object|null $object, callable $callable)
Create a new onceable instance.
at line 30
static Onceable|null
tryFromTrace(array $trace, callable $callable)
Tries to create a new onceable instance from the given trace.
at line 47
static protected null|object
objectFromTrace(array $trace)
Computes the object of the onceable from the given trace, if any.
at line 58
static protected null|string
hashFromTrace(array $trace, callable $callable)
Computes the hash of the onceable from the given trace.