| Total Complexity | 5 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class OpenPositionsRequest implements RequestInterface |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $txid; |
||
| 19 | /** |
||
| 20 | * @var bool |
||
| 21 | */ |
||
| 22 | private $docalcs = false; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * OpenPositionsRequest constructor. |
||
| 26 | * @param string $txid |
||
| 27 | * @param bool $docalcs |
||
| 28 | */ |
||
| 29 | 2 | public function __construct($txid, $docalcs) |
|
| 30 | { |
||
| 31 | 2 | $this->txid = $txid; |
|
| 32 | 2 | $this->docalcs = $docalcs; |
|
| 33 | 2 | } |
|
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * Returns the api request name |
||
| 38 | * |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 1 | public function getMethod() |
|
| 42 | { |
||
| 43 | 1 | return 'OpenPositions'; |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | 1 | public function getVisibility() |
|
| 50 | { |
||
| 51 | 1 | return VisibilityEnum::VISIBILITY_PRIVATE; |
|
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | 1 | public function getRequestData() |
|
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | 1 | public function getResponseClassName() |
|
| 71 | } |
||
| 72 | } |
||
| 73 |