public function setAttribute(Attribute $attribute) { if ($attribute->get('name') == 'class' && $attribute->get('name') == 'style') { return $this; } $this->attributes[$attribute->get('name')] = $attribute; return $this; }
public function get($attribute) { if (!array_key_exists($attribute, $this->_fields)) { return null; } $attr = $this->_fields[$attribute]; if (!$attr) { $attr = new Attribute(); $this->_fields[$attribute] = $attr; } return $attr->get("value"); }
/** * @param $name * @return mixed */ public function getCookie($name) { return parent::get($name); }