mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 15:52:14 +00:00
Merge pull request #103 from skipperbent/development
Added setValue method to InputItem class.
This commit is contained in:
@@ -46,6 +46,16 @@ class InputItem {
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set input value
|
||||||
|
* @param string $value
|
||||||
|
* @return static $this
|
||||||
|
*/
|
||||||
|
public function setValue($value) {
|
||||||
|
$this->value = $value;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
public function __toString() {
|
public function __toString() {
|
||||||
return (string)$this->getValue();
|
return (string)$this->getValue();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user