protected function setTag($element, $value = null, $attributes = array()) { $this->setValue($value); $this->setElement($element); $this->replaceAttributes($attributes); }