Nothing.php 973 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2015 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: yunwuxin <448901948@qq.com>
  10. // +----------------------------------------------------------------------
  11. namespace think\console\output\driver;
  12. use think\console\Output;
  13. class Nothing
  14. {
  15. public function __construct(Output $output)
  16. {
  17. // do nothing
  18. }
  19. public function write($messages, $newline = false, $options = Output::OUTPUT_NORMAL)
  20. {
  21. // do nothing
  22. }
  23. public function renderException(\Exception $e)
  24. {
  25. // do nothing
  26. }
  27. }