18 lines
315 B
PHP
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;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|