/** * Constructor * * @param int $string_type ASN.1 string type tag */ public function __construct($string_type) { parent::__construct(StringPreparer::forStringType($string_type)); }
public function compare($assertion, $value) { $assertion = $this->_prep->prepare($assertion); $value = $this->_prep->prepare($value); return strcmp($assertion, $value) == 0; }
/** * Constructor * * @param int $string_type ASN.1 string type tag */ public function __construct($string_type) { parent::__construct(StringPreparer::forStringType($string_type)->withCaseFolding(true)); }