A super easy PHP Framework for web development!
https://github.com/exacti/phacil-framework
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
706 B
39 lines
706 B
3 years ago
|
<?php
|
||
|
/*
|
||
|
* Copyright © 2021 ExacTI Technology Solutions. All rights reserved.
|
||
|
* GPLv3 General License.
|
||
|
* https://exacti.com.br
|
||
|
* Phacil PHP Framework - https://github.com/exacti/phacil-framework
|
||
|
*/
|
||
|
|
||
|
namespace Phacil\Framework;
|
||
|
|
||
|
/**
|
||
|
* Generic class to use stdClass objects compatibility
|
||
|
*
|
||
|
*
|
||
|
* Works with all PHP versions that this framework is executable.
|
||
|
*
|
||
|
* @package Phacil\Framework
|
||
|
* */
|
||
|
class stdClass extends \stdClass {
|
||
|
|
||
|
/**
|
||
|
* @param string $name
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function __get($name)
|
||
|
{
|
||
|
return $this->$name;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param string $name
|
||
|
* @param mixed $value
|
||
|
* @return void
|
||
|
*/
|
||
|
public function __set($name, $value)
|
||
|
{
|
||
|
$this->$name = $value;
|
||
|
}
|
||
|
}
|