PageRenderTime 40ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/commands/exit.php

https://bitbucket.org/JelmerD/socket-segedp
PHP | 23 lines | 14 code | 3 blank | 6 comment | 0 complexity | ee15502cb61e04cdaf4d1061e69d251f MD5 | raw file
  1. <?php
  2. /**
  3. * Author: Jelmer Dröge
  4. * Date: 3-6-12
  5. * Time: 20:07
  6. * Copyright: 2012(c) Avolans.nl
  7. */
  8. class cmd_exit extends SocketCommand
  9. {
  10. public function __construct()
  11. {
  12. parent::__construct();
  13. $this->shortDescription = "Exits the program and closes the socket";
  14. $this->longDescription = "If you want to exit the program but are to lazy to close everything manually, use this" . PHP_EOL .
  15. "# PARAMETERS: N/A";
  16. }
  17. public function noParameters(){
  18. $this->s->close();
  19. }
  20. }