Files
pocketbase-php-sdk/src/Client.php
BOCKTAELS Hugo b06f49d219 Update Client.php collection function (#1)
The collection function had 2 parameters (url and page) that were unused and useless.
2023-02-22 09:36:30 +01:00

31 lines
508 B
PHP

<?php
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)
{
return new Collection($this->url ,$collection);
}
}