code = $code; $this->field = $field; $this->severity = $severity; } /** * Get the enumerated code. * * @since 4.10.0 * * @return string */ public function get_code() { return $this->code; } /** * Get the field, field group, or null. * * @since 4.10.0 * * @return string|string[]|null */ public function get_field() { return $this->field; } /** * Get the severity. * * @since 4.10.0 * * @return string */ public function get_severity() { return $this->severity; } /** * Whether this finding gates the wizard's Continue action. * * @since 4.10.0 * * @return bool */ public function is_blocking() { return $this->severity === self::ERROR; } /** * Get the wire shape. * * @since 4.10.0 * * @return array */ public function to_array() { return [ 'code' => $this->code, 'field' => $this->field, 'severity' => $this->severity, ]; } }