| 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 | /** |
||
| 28 | * Candlestick constructor. |
||
| 29 | */ |
||
| 30 | 1 | public function __construct() |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @return FallingColor |
||
| 38 | */ |
||
| 39 | public function getFallingColor() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return RisingColor |
||
| 46 | */ |
||
| 47 | public function getRisingColor() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param bool $hollowIsRising |
||
| 54 | * |
||
| 55 | * @return $this |
||
| 56 | */ |
||
| 57 | public function setHollowIsRising($hollowIsRising) |
||
| 63 | } |
||
| 64 |