Added setValue method to InputItem class.

This commit is contained in:
Simon Sessingø
2016-05-04 13:35:23 +02:00
parent eeafcb7862
commit eb8832beec

View File

@@ -46,6 +46,16 @@ class InputItem {
return $this;
}
/**
* Set input value
* @param string $value
* @return static $this
*/
public function setValue($value) {
$this->value = $value;
return $this;
}
public function __toString() {
return (string)$this->getValue();
}