link = $link; $this->original = $link; $this->image = $image; } public function replace($needle, $replace) { $this->link = str_replace($needle, $replace, $this->link); } } ?>