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

LiquidationArgument   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTopic() 0 3 1
A __construct() 0 3 1
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