public function addTag($tag) { if ($this->started !== true) { throw new Exception\SessionNotStartedException('The session has not been started yet.', 1422551048); } $this->tags[$tag] = true; }