getTags() public method

public getTags ( ) : array
return array
 private function serialize(Media $media)
 {
     return ['id' => $media->getId(), 'title' => $media->getTitle(), 'tags' => array_map(function ($tag) {
         return $tag->getName();
     }, $media->getTags())];
 }