From dac8ef21420da6407a8f6a6c36868c7aad8244bd Mon Sep 17 00:00:00 2001 From: James Date: Fri, 5 Jul 2019 21:55:49 +0100 Subject: [PATCH] prototype GiteaData --- src/GiteaData.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/GiteaData.php diff --git a/src/GiteaData.php b/src/GiteaData.php new file mode 100644 index 0000000..7c95ba0 --- /dev/null +++ b/src/GiteaData.php @@ -0,0 +1,30 @@ +repo=$repo; + $this->data=$data; + } + + public function save(){ + return $this->request($this->data->url,'PATCH',$this->data); + } + + public function getData(){ + return $this->data; + } + + public function getRepo(){ + return $this->repo; + } + + public function __set($k,$v){ + $this->data->$k=$v; + } + + public function __get($k){ + return($this->data->$k); + } +}