From eb8832beec8c7a589787f4b8727327f11c0ea7ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Wed, 4 May 2016 13:35:23 +0200 Subject: [PATCH] Added setValue method to InputItem class. --- src/Pecee/Http/Input/InputItem.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Pecee/Http/Input/InputItem.php b/src/Pecee/Http/Input/InputItem.php index 8df2c57..cad36f4 100644 --- a/src/Pecee/Http/Input/InputItem.php +++ b/src/Pecee/Http/Input/InputItem.php @@ -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(); }