public function addFragments($fragments) { foreach ($fragments as $fragment) { $this->addFragment($fragment); } }