Since: 4.2.0

trait ResultTypeStringAware

This Trait partially implements the ResultAwareInterface for type checking.

Events using this Trait (and the ResultAware trait) will expect event handlers to set results of a String type.

Properties

protected bool Since: 4.2.0
$resultIsNullable

Can the result attribute values also be NULL?

protected bool deprecated Since: 4.2.0
$resultIsFalseable

Can the result attribute values also be boolean FALSE?

Methods

void
typeCheckResult(mixed $data)

Checks the type of the data being appended to the result argument.

Details

void typeCheckResult(mixed $data)

Since: 4.2.0
internal  
 

Checks the type of the data being appended to the result argument.

Parameters

mixed $data

The data to type check

Return Value

void

Exceptions

InvalidArgumentException