Skip to content

Commit

Permalink
add method setAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
BMTmohammedtaha committed Sep 27, 2023
1 parent 55204c4 commit 43c0ca4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Data/DataRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 43c0ca4

Please sign in to comment.