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 16
Has
count(string|int $key, int|null $length = null)
Assert that the prop is of the expected size.
at line 44
Has
countBetween(int|string $min, int|string $max)
Assert that the prop size is between a given minimum and maximum.
at line 72
Has
has(string|int $key, int|Closure|null $length = null, Closure|null $callback = null)
Ensure that the given prop exists.
at line 114
Has
hasAll(array|string $key)
Assert that all of the given props exist.
at line 132
Has
hasAny(array|string $key)
Assert that at least one of the given props exists.
at line 151
Has
missingAll(array|string $key)
Assert that none of the given props exist.
at line 165
Has
missing(string $key)
Assert that the given prop does not exist.
at line 178
abstract protected string
dotPath(string $key = '')
Compose the absolute "dot" path to the given key.
at line 183
abstract protected void
interactsWith(string|int $key)
Mark the property as interacted.
at line 188
abstract protected mixed
prop(string|null $key = null)
Retrieve a prop within the current scope using "dot" notation.
at line 193
abstract protected Has
scope(string|int $key, Closure $callback)
Instantiate a new "scope" at the path of the given key.
at line 198
abstract Has
etc()
Disable the interaction check.