| Total Complexity | 1 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | abstract class Renderer implements RendererInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Flag used for rendering JSON in pretty mode. |
||
| 15 | */ |
||
| 16 | const RENDER_PRETTY = 1; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var Chart The chart that needs to be rendered. |
||
| 20 | */ |
||
| 21 | protected $chart; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * RendererInterface constructor. Expects an instance of a chart. |
||
| 25 | * |
||
| 26 | * @param Chart $chart The Chart that needs to be rendered. |
||
| 27 | */ |
||
| 28 | public function __construct(Chart $chart) |
||
| 33 |