Validator implements ValidatorInterface

This commit is contained in:
Chris Boden 2014-08-30 08:36:44 -04:00
parent 44a8b404f8
commit e69e40e9ab

View File

@ -4,7 +4,7 @@ namespace Ratchet\WebSocket\Encoding;
/** /**
* This class handled encoding validation * This class handled encoding validation
*/ */
class Validator { class Validator implements ValidatorInterface {
const UTF8_ACCEPT = 0; const UTF8_ACCEPT = 0;
const UTF8_REJECT = 1; const UTF8_REJECT = 1;
@ -35,13 +35,13 @@ class Validator {
* Lookup if mbstring is available * Lookup if mbstring is available
* @var bool * @var bool
*/ */
private $hasMbString = false; private $hasMbString = false;
/** /**
* Lookup if iconv is available * Lookup if iconv is available
* @var bool * @var bool
*/ */
private $hasIconv = false; private $hasIconv = false;
public function __construct() { public function __construct() {
$this->hasMbString = extension_loaded('mbstring'); $this->hasMbString = extension_loaded('mbstring');