First commit.
This commit is contained in:
17
src/Libs/Params.php
Normal file
17
src/Libs/Params.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user