Skip to content

Commit 4a6e970

Browse files
committed
Set Value Function
1 parent 0f49e2a commit 4a6e970

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Validator.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,17 @@ public function setValues(array $values)
104104
$this->values = $values;
105105
}
106106

107+
108+
/**
109+
* Set value by key
110+
* @param $key
111+
* @param mixed $default
112+
*/
113+
public function setValue($key, $value)
114+
{
115+
$this->values[$key] = $value;
116+
}
117+
107118
/**
108119
* Get all values
109120
* @return array

0 commit comments

Comments
 (0)