Passed
Push — master ( 8ca73d...2eaf19 )
by Vladislav
02:37 queued 15s
created

BooktickerChannel::getResponseClassname()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Carpenstar\ByBitAPI\WebSockets\Spot\PublicChannels\Bookticker;
4
5
use Carpenstar\ByBitAPI\Core\Enums\WebSocketOperationsEnum;
6
use Carpenstar\ByBitAPI\Core\Objects\WebSockets\WebSocketsSpotPublicChannel;
7
use Carpenstar\ByBitAPI\WebSockets\Spot\PublicChannels\Bookticker\Entities\BooktickerResponse;
8
9
/**
10
 * https://bybit-exchange.github.io/docs/spot/ws-public/bookticker
11
 *
12
 * Topic: bookticker.{symbol}
13
 *
14
 * Best bid price and best ask price
15
 * Push frequency: 100ms
16
 *
17
 */
18
class BooktickerChannel extends WebSocketsSpotPublicChannel
19
{
20
    public function getResponseClassname(): string
21
    {
22
        return BooktickerResponse::class;
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    public function getOperation(): string
29
    {
30
        return WebSocketOperationsEnum::SUBSCRIBE;
31
    }
32
}
33