refactor! v1.1
This commit is contained in:
19
src/GiteaRepoData.php
Normal file
19
src/GiteaRepoData.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
class GiteaRepoData extends GiteaData{
|
||||
|
||||
private $repo;
|
||||
|
||||
public function __construct(Repo $repo,$data){
|
||||
$this->repo=$repo;
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
public function getRepo(){
|
||||
return $this->repo;
|
||||
}
|
||||
|
||||
public function save(){
|
||||
return $this->repo->request($this->url,'PATCH',$this->data);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user