Improve Params.
This commit is contained in:
parent
b07333f3c8
commit
cca5cb26ec
@ -6,11 +6,8 @@ class Params {
|
|||||||
|
|
||||||
private $data;
|
private $data;
|
||||||
|
|
||||||
public function __construct($args){
|
public function __construct($data){
|
||||||
$this->data = [];
|
$this->data = (array) $data;
|
||||||
foreach($args as $index => $value){
|
|
||||||
$this->data[$index] = $value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __isset($index) {
|
public function __isset($index) {
|
||||||
|
Loading…
Reference in New Issue
Block a user