public function parseValue($value)
    {
        foreach ($this->mappings as $mapping => $replace) {
            if (is_callable($replace)) {
                $value = preg_replace_callback($mapping, $replace, $value);
            } else {
                $value = preg_replace($mapping, $replace, $value);
            }
        }

        return $value;
    }