public function replaceTokens($string)
    {
        foreach ($this->getTokenNames($string) as $token) {
            $string = str_replace("{{$token}}", $this->getTokenValue($token), $string);
        }
        
        return $string;
    }
public function replaceTokens($string)
    {
        foreach ($this->getTokenNames($string) as $token) {
            $string = str_replace("{{$token}}", $this->getTokenValue($token), $string);
        }
        
        return $string;
    }
public function replaceTokens ( $ string ) { foreach ( $ this -> getTokenNames ( $ string ) as $ token ) { $ string = str_replace ( "{{$token}}" , $ this -> getTokenValue ( $ token ) , $ string ) ; } return $ string ; }
Replaces identified tokens within the given string.

@param string $string

@return string
Replaces identified tokens within the given string .