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.
30 lines
798 B
30 lines
798 B
<?php
|
|
|
|
namespace Darksparrow\DeegraphInteractions\QueryBuilder\UnlinkQuery;
|
|
|
|
use Darksparrow\DeegraphInteractions\Core\DeegraphServer;
|
|
use Darksparrow\DeegraphInteractions\DataStructures\UUID;
|
|
use Darksparrow\DeegraphInteractions\QueryBuilder\LinkQuery\LinkQueryResponse;
|
|
|
|
class UnlinkQuery
|
|
{
|
|
protected string $QueryString;
|
|
|
|
public function __construct(string $queryString)
|
|
{
|
|
$this->QueryString = $queryString;
|
|
}
|
|
public function __toString()
|
|
{
|
|
return $this->QueryString;
|
|
}
|
|
|
|
public function runQuery(UUID $actorID, DeegraphServer $server): UnlinkQueryResponse
|
|
{
|
|
$response = $server->runQuery(
|
|
actorID: $actorID,
|
|
queryString: $this->QueryString,
|
|
);
|
|
return new UnlinkQueryResponse($response);
|
|
}
|
|
}
|
|
|