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