remove users collection and used code

This commit is contained in:
Martz
2023-02-28 21:12:38 +01:00
parent c52ff18bea
commit 78fd67a12d
4 changed files with 11 additions and 54 deletions

View File

@@ -2,28 +2,16 @@
namespace Pb;
use UsersCollection;
class Client
{
private string $response;
private string $url;
private string $route;
public function __construct(string $url)
{
$this->response = '{}';
$this->url = $url;
$this->users = [];
}
public function users()
{
return new UsersCollection($this->url, 'records');
}
public function collection(string $collection)
public function collection(string $collection): Collection
{
return new Collection($this->url ,$collection);
}