You are viewing an older version of the documentation. For the latest, please visit master documentation.

Has

Methods

public

count ( $key , int $length ) : $this

Assert that the prop is of the expected size.

Parameters

  • $key string|int
  • $length int|null
public

has ( $key , $length , Closure $callback ) : $this

Ensure that the given prop exists.

Parameters

public

hasAll ( $key ) : $this

Assert that all of the given props exist.

Parameters

  • $key array|string
public

hasAny ( $key ) : $this

Assert that at least one of the given props exists.

Parameters

  • $key array|string
public

missingAll ( $key ) : $this

Assert that none of the given props exist.

Parameters

  • $key array|string
public

missing ( string $key ) : $this

Assert that the given prop does not exist.

Parameters

  • $key string
protected abstract

dotPath ( string $key ) : string

Compose the absolute "dot" path to the given key.

Parameters

  • $key string
protected abstract

interactsWith ( string $key ) : void

Marks the property as interacted.

Parameters

  • $key string
protected abstract

prop ( string $key ) : mixed

Retrieve a prop within the current scope using "dot" notation.

Parameters

  • $key string|null
protected abstract

scope ( string $key , Closure $callback ) : $this

Instantiate a new "scope" at the path of the given key.

Parameters

public abstract

etc ( ) : $this

Disables the interaction check.

public abstract

first ( Closure $callback ) : $this

Instantiate a new "scope" on the first element.

Parameters