mirror of
https://github.com/jonathan-martz/pocketbase-php-sdk.git
synced 2026-04-03 07:27:42 +00:00
remove users collection and used code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user