public function createTags() { foreach ($this->tags as $name) { $tag = Tag::register(new TagName($name)); $this->tagRepo->add($tag); } }
public function add($name) { $lower = strtolower($name); $tag = Tag::register(new Name($lower)); return $this->tagRepo->add($tag); }