protected function replacePlaceHolder($string)
    {
        foreach ($this->placeHolders as $key => $val) {
            $string = str_replace($key, $val, $string);
        }

        return $string;
    }
protected function replacePlaceHolder($string)
    {
        foreach ($this->placeHolders as $key => $val) {
            $string = str_replace($key, $val, $string);
        }

        return $string;
    }
protected function replacePlaceHolder ( $ string ) { foreach ( $ this -> placeHolders as $ key => $ val ) { $ string = str_replace ( $ key , $ val , $ string ) ; } return $ string ; }
Replaces placeholders in provided text.

@param string $string

@return string
Replaces placeholders in provided text .