CodeExplorer shouldStop example
$result = true;
foreach ($this->validations
as $validation) { $emailLexer->
reset();
$validationResult =
$validation->
isValid($email,
$emailLexer);
$result =
$result &&
$validationResult;
$this->warnings =
array_merge($this->warnings,
$validation->
getWarnings());
if (!
$validationResult) { $this->
processError($validation);
} if ($this->
shouldStop($result)) { break;
} } return $result;
} private function initErrorStorage(): void
{ if (null ===
$this->error
) { $this->error =
new MultipleErrors();
}