protected function validateTextMatch($check, array $textMatch)
    {
        if ($check instanceof VObject\Node) {
            $check = $check->getValue();
        }

        $isMatching = \Sabre\DAV\StringUtil::textMatch($check, $textMatch['value'], $textMatch['collation']);

        return $textMatch['negate-condition'] xor $isMatching;
    }
protected function validateTextMatch($check, array $textMatch)
    {
        if ($check instanceof VObject\Node) {
            $check = $check->getValue();
        }

        $isMatching = \Sabre\DAV\StringUtil::textMatch($check, $textMatch['value'], $textMatch['collation']);

        return $textMatch['negate-condition'] xor $isMatching;
    }
protected function validateTextMatch ( $ check , array $ textMatch ) { if ( $ check instanceof VObject \ Node ) { $ check = $ check -> getValue ( ) ; } $ isMatching = \ Sabre \ DAV \ StringUtil :: textMatch ( $ check , $ textMatch [ 'value' ] , $ textMatch [ 'collation' ] ) ; return $ textMatch [ 'negate-condition' ] xor $ isMatching ; }
This method checks the validity of a text-match.

A single text-match should be specified as well as the specific property
or parameter we need to validate.

@param VObject\Node|string $check     value to check against
@param array               $textMatch

@return bool
This method checks the validity of a text - match .