IRenderer.php 500 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace PhpOffice\PhpSpreadsheet\Chart\Renderer;
  3. use PhpOffice\PhpSpreadsheet\Chart\Chart;
  4. interface IRenderer
  5. {
  6. /**
  7. * IRenderer constructor.
  8. *
  9. * @param \PhpOffice\PhpSpreadsheet\Chart\Chart $chart
  10. */
  11. public function __construct(Chart $chart);
  12. /**
  13. * Render the chart to given file (or stream).
  14. *
  15. * @param string $filename Name of the file render to
  16. *
  17. * @return bool true on success
  18. */
  19. public function render($filename);
  20. }