Commit c8ae0525 authored by SpinShare's avatar SpinShare

added a get function for tags

parent e54585a3
...@@ -201,6 +201,11 @@ class Song ...@@ -201,6 +201,11 @@ class Song
return $this->tags; return $this->tags;
} }
public function getTagsArray()
{
return array_map('trim', explode(",", $this->tags));
}
public function setTags(?string $tags): self public function setTags(?string $tags): self
{ {
$this->tags = $tags; $this->tags = $tags;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment