Symfony\Component\Validator\Constraints\EmailValidator::__construct PHP Method

__construct() public method

public __construct ( $strict = false )
    public function __construct($strict = false)
    {
        $this->isStrict = $strict;
    }

Usage Example

 /**
  * @param bool  $strict
  * @param array $hosts
  */
 public function __construct($strict = false, $hosts = [])
 {
     parent::__construct($strict);
     $this->blacklist = $hosts;
 }