GiteaBot/src/GiteaData.php
2019-09-07 09:25:34 +01:00

26 lines
415 B
PHP

<?php
namespace JHodges\GiteaBot;
class GiteaData{
protected $data=null;
protected $newData=null;
public function __construct($data=null){
$this->newData=new \stdClass();
if(!$data){
$data=new \stdClass();
}
$this->data=$data;
}
public function __set($k,$v){
$this->data->$k=$v;
$this->newData->$k=$v;
}
public function __get($k){
return($this->data->$k);
}
}