public function hasTags(array $tagNames) { foreach ($tagNames as $tag) { if (!$this->hasTag($tag)) { return false; } } return true; }