public function add(array $attributes) { $tag = parent::add($attributes); $this->cache[$tag->getId()] = $tag; return $tag; }