You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Renderer.php 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  3. /**
  4. * This file is part of the PEAR Console_CommandLine package.
  5. *
  6. * PHP version 5
  7. *
  8. * LICENSE: This source file is subject to the MIT license that is available
  9. * through the world-wide-web at the following URI:
  10. * http://opensource.org/licenses/mit-license.php
  11. *
  12. * @category Console
  13. * @package Console_CommandLine
  14. * @author David JEAN LOUIS <izimobil@gmail.com>
  15. * @copyright 2007 David JEAN LOUIS
  16. * @license http://opensource.org/licenses/mit-license.php MIT License
  17. * @version CVS: $Id$
  18. * @link http://pear.php.net/package/Console_CommandLine
  19. * @since File available since release 0.1.0
  20. * @filesource
  21. */
  22. /**
  23. * Renderers common interface, all renderers must implement this interface.
  24. *
  25. * @category Console
  26. * @package Console_CommandLine
  27. * @author David JEAN LOUIS <izimobil@gmail.com>
  28. * @copyright 2007 David JEAN LOUIS
  29. * @license http://opensource.org/licenses/mit-license.php MIT License
  30. * @version Release: 1.2.2
  31. * @link http://pear.php.net/package/Console_CommandLine
  32. * @since Class available since release 0.1.0
  33. */
  34. interface Console_CommandLine_Renderer
  35. {
  36. // usage() {{{
  37. /**
  38. * Returns the full usage message.
  39. *
  40. * @return string The usage message
  41. */
  42. public function usage();
  43. // }}}
  44. // error() {{{
  45. /**
  46. * Returns a formatted error message.
  47. *
  48. * @param string $error The error message to format
  49. *
  50. * @return string The error string
  51. */
  52. public function error($error);
  53. // }}}
  54. // version() {{{
  55. /**
  56. * Returns the program version string.
  57. *
  58. * @return string The version string
  59. */
  60. public function version();
  61. // }}}
  62. }