protected function replacePlaceholders($string, $arguments)
    {
        if (count($arguments) == 0) {
            return $string;
        }
        
        foreach ($arguments as $key => $value) {
            $string = str_replace('%' . $key . '%', $value, $string);
        }
        
        return $string;
    }