final class SystemResponse

Checks the system clause that ends every EARS statement.

The clause reads "The <system name> shall <system response>", or "Then the ..." after an If trigger, and contains a single shall.

Methods§

public function validate(string $clause, string|null $trigger): void

Checks the system clause.

Parameters

$clausestringThe last clause of the statement
$triggerstring|nullThe trigger keyword of the statement, if any

Throws

InvalidInputException When the clause does not name a system and a response, or repeats shall
Test cases 4
Called from 1
Calls 4

Test cases 20§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 4
Other tests reaching this symbol 16

Relations§

Instantiated in 1
Method calls 1