patches[] = $patch; return $this; } public function apply_patches() { foreach ( $this->patches as $patch ) { $patch->apply_patch(); } } }