public function getUser()
{
return $this->user;
}
/** * Add tags from rules defined by the user. * * @param Entry $entry Entry to tag */ public function tag(Entry $entry) { $rules = $this->getRulesForUser($entry->getUser()); foreach ($rules as $rule) { if (!$this->rulerz->satisfies($entry, $rule->getRule())) { continue; } foreach ($rule->getTags() as $label) { $tag = $this->getTag($label); $entry->addTag($tag); } } }