1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-06-10 22:43:16 +02:00
Files
Test-Miroir/SourceQuery/SourceQueryFactory.php
T
Anthony Birkett 780ebba6a2 Create a factory for easy setup.
Update README.md.
2021-05-31 14:53:28 +01:00

22 lines
443 B
PHP

<?php
declare(strict_types=1);
namespace xPaw\SourceQuery;
use xPaw\SourceQuery\Socket\GoldSourceSocket;
use xPaw\SourceQuery\Socket\SourceSocket;
final class SourceQueryFactory
{
public static function createGoldSourceQuery(): SourceQuery
{
return new SourceQuery(new SourceSocket());
}
public static function createSourceQuery(): SourceQuery
{
return new SourceQuery(new GoldSourceSocket());
}
}