- Defined sets() as chainable
This commit is contained in:
parent
ca2d71e3ed
commit
3d412d6a46
@ -147,11 +147,13 @@ class FormContext implements FormContextInterface
|
||||
return $this->formContextValues[$key] = $value;
|
||||
}
|
||||
|
||||
public function sets(array $values) : void
|
||||
public function sets(array $values) : static
|
||||
{
|
||||
foreach($values as $key =>$value) {
|
||||
$this->set($key, $value);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user