duckbrain/src/Libs/Params.php
2020-03-07 23:37:19 -04:00

18 lines
315 B
PHP

<?php
namespace Libs;
class Params {
public function __construct($args){
foreach($args as $index => $value){
$this->$index = $value;
}
}
public function __get($index){
return (isset($this->$index) && $this->$index != '') ? urldecode($this->$index) : null;
}
}
?>