Improve Params.

This commit is contained in:
kj 2020-03-17 09:20:58 -04:00
parent b07333f3c8
commit cca5cb26ec

View File

@ -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) {