diff --git a/src/Data/DataRules.php b/src/Data/DataRules.php index 16c21a7..b570fd5 100644 --- a/src/Data/DataRules.php +++ b/src/Data/DataRules.php @@ -65,6 +65,18 @@ public function setAttribute(string $key, $attribute): self return $this; } + /** + * Set an attributes. + * + * @param $attribute The attribute name to set. + * @return self + */ + public function setAttributes(array $attributes): self + { + $this->attributes = $attributes; + return $this; + } + /** * Check if a rule with the specified key exists. *