ApiRenderer.php 609 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\apidoc\renderers;
  8. use Yii;
  9. use yii\apidoc\models\Context;
  10. /**
  11. * Base class for all API documentation renderers
  12. *
  13. * @author Carsten Brandt <mail@cebe.cc>
  14. * @since 2.0
  15. */
  16. abstract class ApiRenderer extends BaseRenderer
  17. {
  18. /**
  19. * Renders a given [[Context]].
  20. *
  21. * @param Context $context the api documentation context to render.
  22. * @param $targetDir
  23. */
  24. abstract public function render($context, $targetDir);
  25. }