for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Carpenstar\ByBitAPI\Core\Objects\WebSockets;
use Carpenstar\ByBitAPI\Core\Interfaces\IWebSocketArgumentInterface;
abstract class WebSocketArgument implements IWebSocketArgumentInterface
{
public const STREAM_TYPES = ['spot', 'linear', 'option', 'inverse'];
protected string $streamType;
protected array $symbols;
public function __construct(array $symbols, string $streamType)
$this->symbols = $symbols;
$this->streamType = $streamType;
}
/**
* Получение списка торговых символов
*
* @return array
*/
public function getSymbols(): array
return $this->symbols;
* Получение алиаса потока
* @return string
public function getStreamType(): string
return $this->streamType;