public function addFragment($fragment)
    {
        if (is_array($fragment)) {
            $this->fragments = array_merge($this->fragments, $fragment);
        } else {
            $this->fragments[] = $fragment;
        }
    }