Validator implements ValidatorInterface
This commit is contained in:
parent
44a8b404f8
commit
e69e40e9ab
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user