duckbrain/src/Libs/Params.php

18 lines
315 B
PHP
Raw Normal View History

2020-03-08 04:37:19 +01:00
<?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;
}
}
?>