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