public isSuccessful ( ) : boolean | ||
return | boolean |
public function isSuccessful()
{
$failures = $this->getTotalFailures();
$errors = $this->getTotalErrors();
return $failures === 0 && $errors === 0;
}
/** * Return the footer information reporting success * or failure * * @return string */ public function getFooter() { return $this->results->isSuccessful() ? $this->getSuccessFooter() : $this->getFailedFooter(); }