Exemple #1
0
 /**
  * Splits this Status object into two new Status objects, one which contains only
  * the error messages, and one that contains the warnings, only. The returned array is
  * defined as:
  * [
  *     0 => object(Status) # the Status with error messages, only
  *     1 => object(Status) # The Status with warning messages, only
  * ]
  *
  * @return Status[]
  */
 public function splitByErrorType()
 {
     list($errorsOnlyStatus, $warningsOnlyStatus) = parent::splitByErrorType();
     $errorsOnlyStatus->cleanCallback = $warningsOnlyStatus->cleanCallback = $this->cleanCallback;
     return [$errorsOnlyStatus, $warningsOnlyStatus];
 }