public function toText($patches) { $text = ''; foreach ($patches as $patch) { $text .= (string) $patch; } return $text; }