Passed
Pull Request — master (#10)
by Vladislav
15:29 queued 07:37
created

LiquidationArgument::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Carpenstar\ByBitAPI\WebSockets\Channels\Derivatives\PublicChannels\Liquidation\Argument;
4
5
use Carpenstar\ByBitAPI\WebSockets\Enums\WebSocketTopicNameEnum;
6
use Carpenstar\ByBitAPI\WebSockets\Objects\WebSockets\WebSocketArgument;
7
8
class LiquidationArgument extends WebSocketArgument
9
{
10
    private int $depth;
0 ignored issues
show
introduced by
The private property $depth is not used, and could be removed.
Loading history...
11
12
    public function __construct(string $symbol)
13
    {
14
        parent::__construct($symbol);
15
    }
16
17
    public function getTopic(): array
18
    {
19
        return [WebSocketTopicNameEnum::DERIVATIVES_LIQUIDATION.".{$this->getSymbols()}"];
20
    }
21
}
22