public function replaceTags(array $tags, Taggable $resource)
    {
        $resource->getTags()->clear();
        $this->addTags($tags, $resource);
    }
public function replaceTags(array $tags, Taggable $resource)
    {
        $resource->getTags()->clear();
        $this->addTags($tags, $resource);
    }
public function replaceTags ( array $ tags , Taggable $ resource ) { $ resource -> getTags ( ) -> clear ( ) ; $ this -> addTags ( $ tags , $ resource ) ; }
Replaces all current tags on the given taggable resource

@param Tag[]     $tags       Array of Tag objects
@param Taggable  $resource   Taggable resource
Replaces all current tags on the given taggable resource