Hoa central
CloseError.php
Go to the documentation of this file.
1 <?php
2 
37 namespace Hoa\Websocket\Exception;
38 
47 class CloseError extends Exception
48 {
56  protected $_errorCode = null;
57 
58 
65  public function setErrorCode($code)
66  {
67  $old = $this->_errorCode;
68  $this->_errorCode = $code;
69 
70  return $old;
71  }
72 
78  public function getErrorCode()
79  {
80  return $this->_errorCode;
81  }
82 }