public function setTemplate($template, $body = null)
    {
        $this->template = $template;

        if (!is_null($body)) {
            return $this->transform($body);
        }

        return '';
    }
public function setTemplate($template, $body = null)
    {
        $this->template = $template;

        if (!is_null($body)) {
            return $this->transform($body);
        }

        return '';
    }
public function setTemplate ( $ template , $ body = null ) { $ this -> template = $ template ; if ( ! is_null ( $ body ) ) { return $ this -> transform ( $ body ) ; } return '' ; }
Sets a template with placeholders, that should be
replaced by the data from an oembed response.


@param string $template
@param string|array $body An array or string with Urls
@return string
Sets a template with placeholders that should be replaced by the data from an oembed response .