You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
703 B

<?php
namespace Darksparrow\DeegraphInteractions\QueryBuilder\PermissionsQuery;
use Darksparrow\DeegraphInteractions\Core\DeegraphServer;
final class PermissionQuery
{
protected string $QueryString;
public function __construct(string $queryString)
{
$this->QueryString = $queryString;
}
public function __toString()
{
return $this->QueryString;
}
public function RunQuery(DeegraphServer $server): PermissionQueryResponse
{
$response = $server->RunRawRequest(
endpoint: "/api/v1/@query",
method: "POST",
body: $this->QueryString
);
return new PermissionQueryResponse($response);
}
}