@@ 471-480 (lines=10) @@ | ||
468 | * |
|
469 | * @return self |
|
470 | */ |
|
471 | public function setValue($key, $value, $group = null) |
|
472 | { |
|
473 | if (!empty($group)) { |
|
474 | $this->values[$group][$key] = $value; |
|
475 | } else { |
|
476 | $this->values[$key] = $value; |
|
477 | } |
|
478 | ||
479 | return $this; |
|
480 | } |
|
481 | ||
482 | /** |
|
483 | * Sets values of validated data. |
|
@@ 490-499 (lines=10) @@ | ||
487 | * |
|
488 | * @return self |
|
489 | */ |
|
490 | public function setValues(array $values, $group = null) |
|
491 | { |
|
492 | if (!empty($group)) { |
|
493 | $this->values[$group] = $values; |
|
494 | } else { |
|
495 | $this->values = $values; |
|
496 | } |
|
497 | ||
498 | return $this; |
|
499 | } |
|
500 | ||
501 | /** |
|
502 | * Gets the value of a property of an object. |