芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/public_html/wp-content/plugins/wordpress-seo-premium/classes/validation-result.php
message = $message; $this->set_fields( $fields ); } /** * Gets the validation result message. * * @return string */ public function get_message() { return $this->message; } /** * Returns an Array representation of the validation result. * * @return array */ public function to_array() { return [ 'type' => $this->get_type(), 'message' => $this->message, 'fields' => $this->fields, ]; } /** * Setting the fields with errors. * * @param string $fields The fields with errors on it. * * @return void */ protected function set_fields( $fields = '' ) { if ( ! is_array( $fields ) && is_string( $fields ) ) { $fields = [ $fields ]; } $this->fields = $fields; } }