add namespaces

This commit is contained in:
James 2019-08-25 12:30:35 +01:00
parent d4bdbc2c16
commit 2f04372d87
6 changed files with 12 additions and 0 deletions

View File

@ -1,4 +1,6 @@
<?php <?php
namespace JHodges\GiteaBot;
class Client{ class Client{
public function __construct($url,$user,$pass,$debug=false){ public function __construct($url,$user,$pass,$debug=false){

View File

@ -1,4 +1,6 @@
<?php <?php
namespace JHodges\GiteaBot;
class GiteaData{ class GiteaData{
protected $data=null; protected $data=null;

View File

@ -1,4 +1,6 @@
<?php <?php
namespace JHodges\GiteaBot;
class GiteaRepoData extends GiteaData{ class GiteaRepoData extends GiteaData{
private $repo; private $repo;

View File

@ -1,4 +1,6 @@
<?php <?php
namespace JHodges\GiteaBot;
class Issue extends GiteaRepoData{ class Issue extends GiteaRepoData{
public function __construct(Repo $repo,$data){ public function __construct(Repo $repo,$data){

View File

@ -1,4 +1,6 @@
<?php <?php
namespace JHodges\GiteaBot;
class Label extends GiteaRepoData{ class Label extends GiteaRepoData{
} }

View File

@ -1,4 +1,6 @@
<?php <?php
namespace JHodges\GiteaBot;
class Repo{ class Repo{
private $cache=[]; private $cache=[];