trait Interaction (View source)

Properties

protected array $interacted

The list of interacted properties.

Methods

void
interactsWith(string $key)

Marks the property as interacted.

void
interacted()

Asserts that all properties have been interacted with.

etc()

Disables the interaction check.

mixed
prop(string $key = null)

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

Details

protected void interactsWith(string $key)

Marks the property as interacted.

Parameters

string $key

Return Value

void

void interacted()

Asserts that all properties have been interacted with.

Return Value

void

Interaction etc()

Disables the interaction check.

Return Value

Interaction

abstract protected mixed prop(string $key = null)

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

Parameters

string $key

Return Value

mixed