public function getType()
  {
    if ($this->isNotApplicable()) {
      return 'not-applicable';
    }
    if ($this->hasError()) {
      return 'error';
    }
    if ($this->isNotice()) {
      return 'notice';
    }
    if ($this->hasWarning()) {
      return 'warning';
    }
    $policy_type = $this->policy->get('type');
    if ($policy_type == 'data') {
      return 'notice';
    }
    return $this->isSuccessful() ? 'success' : 'failure';
  }
public function getType()
  {
    if ($this->isNotApplicable()) {
      return 'not-applicable';
    }
    if ($this->hasError()) {
      return 'error';
    }
    if ($this->isNotice()) {
      return 'notice';
    }
    if ($this->hasWarning()) {
      return 'warning';
    }
    $policy_type = $this->policy->get('type');
    if ($policy_type == 'data') {
      return 'notice';
    }
    return $this->isSuccessful() ? 'success' : 'failure';
  }
public function getType ( ) { if ( $ this -> isNotApplicable ( ) ) { return 'not-applicable' ; } if ( $ this -> hasError ( ) ) { return 'error' ; } if ( $ this -> isNotice ( ) ) { return 'notice' ; } if ( $ this -> hasWarning ( ) ) { return 'warning' ; } $ policy_type = $ this -> policy -> get ( 'type' ) ; if ( $ policy_type == 'data' ) { return 'notice' ; } return $ this -> isSuccessful ( ) ? 'success' : 'failure' ; }
Get the type of response based on policy type and audit response.
Get the type of response based on policy type and audit response .