public function addTemplate($name, $url, $ttl, array $blocks, array $metadata)
    {
        $this->templates[$name] = [
            'url' => $url,
            'ttl' => $ttl,
            'blocks' => $blocks,
            'metadata' => $metadata,
            'checked_ttl' => false,
            'checking_ttl' => false,
        ];
    }
public function addTemplate($name, $url, $ttl, array $blocks, array $metadata)
    {
        $this->templates[$name] = [
            'url' => $url,
            'ttl' => $ttl,
            'blocks' => $blocks,
            'metadata' => $metadata,
            'checked_ttl' => false,
            'checking_ttl' => false,
        ];
    }
public function addTemplate ( $ name , $ url , $ ttl , array $ blocks , array $ metadata ) { $ this -> templates [ $ name ] = [ 'url' => $ url , 'ttl' => $ ttl , 'blocks' => $ blocks , 'metadata' => $ metadata , 'checked_ttl' => false , 'checking_ttl' => false , ] ; }
Add a remote template.

@param string $name
@param string $url
@param int    $ttl
@param array  $blocks
@param array  $metadata
Add a remote template .