| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 30% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Candlestick |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * If true, rising candles will appear hollow and falling candles will appear solid, otherwise, the opposite. |
||
| 12 | * |
||
| 13 | * @var bool |
||
| 14 | */ |
||
| 15 | protected $hollowIsRising; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var FallingColor |
||
| 19 | */ |
||
| 20 | protected $fallingColor; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var RisingColor |
||
| 24 | */ |
||
| 25 | protected $risingColor; |
||
| 26 | |||
| 27 | 1 | public function __construct() |
|
| 31 | } |
||
| 32 | |||
| 33 | public function getFallingColor(): FallingColor |
||
| 34 | { |
||
| 35 | return $this->fallingColor; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getRisingColor(): RisingColor |
||
| 39 | { |
||
| 40 | return $this->risingColor; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function setHollowIsRising(bool $hollowIsRising) |
||
| 51 | } |
||
| 52 | } |
||
| 53 |