Пример #1
0
 /**
  * Adds multiple tags on the given taggable resource
  *
  * @param Tag[]    $tags     Array of Tag objects
  * @param Taggable $resource Taggable resource
  */
 public function addTags($tags, Taggable $resource)
 {
     foreach ($tags as $tag) {
         if ($tag instanceof Tag) {
             $resource->getTags()->add($tag);
         }
     }
 }