19 lines
No EOL
504 B
PHP
19 lines
No EOL
504 B
PHP
<?php
|
|
|
|
namespace Socialbox\Classes\StandardMethods\Core;
|
|
|
|
use Socialbox\Abstracts\Method;
|
|
use Socialbox\Interfaces\SerializableInterface;
|
|
use Socialbox\Objects\ClientRequest;
|
|
use Socialbox\Objects\RpcRequest;
|
|
|
|
class Ping extends Method
|
|
{
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public static function execute(ClientRequest $request, RpcRequest $rpcRequest): ?SerializableInterface
|
|
{
|
|
return $rpcRequest->produceResponse(true);
|
|
}
|
|
} |