public function escapeForLike($string, $wildcardAtStart = true, $wildcardAtEnd = true)
    {
        if ($wildcardAtStart) {
            $result = $this->anyCharacterWildcard;
        } else {
            $result = '';
        }
        $result .= strtr((string) $string, $this->getEscapeMap());
        if ($wildcardAtEnd && $result !== $this->anyCharacterWildcard) {
            $result .= $this->anyCharacterWildcard;
        }

        return $result;
    }