Has
trait Has
Methods
Assert that the prop size is between a given minimum and maximum.
Assert that none of the given props exist.
Compose the absolute "dot" path to the given key.
Mark the property as interacted.
Retrieve a prop within the current scope using "dot" notation.
Details
at line 18
Has
count(string|int $key, int|null $length = null)
Assert that the prop is of the expected size.
at line 48
Has
countBetween(int|string $min, int|string $max)
Assert that the prop size is between a given minimum and maximum.
at line 78
Has
has(string|int $key, int|Closure|null $length = null, Closure|null $callback = null)
Ensure that the given prop exists.
at line 122
Has
hasAll(array|string $key)
Assert that all of the given props exist.
at line 142
Has
hasAny(array|string $key)
Assert that at least one of the given props exists.
at line 163
Has
missingAll(array|string $key)
Assert that none of the given props exist.
at line 179
Has
missing(string $key)
Assert that the given prop does not exist.
at line 192
abstract protected string
dotPath(string $key = '')
Compose the absolute "dot" path to the given key.
at line 197
abstract protected void
interactsWith(string|int $key)
Mark the property as interacted.
at line 202
abstract protected mixed
prop(string|null $key = null)
Retrieve a prop within the current scope using "dot" notation.
at line 209
abstract protected Has
scope(string|int $key, Closure $callback)
Instantiate a new "scope" at the path of the given key.
at line 216
abstract Has
etc()
Disable the interaction check.