public function addVarAttr($name, $value)
    {
        if (!in_array($name, $this->varAttr)) {
            $this->varAttr[$name] = $value;
        }
        return $this;
    }
public function addVarAttr($name, $value)
    {
        if (!in_array($name, $this->varAttr)) {
            $this->varAttr[$name] = $value;
        }
        return $this;
    }
public function addVarAttr ( $ name , $ value ) { if ( ! in_array ( $ name , $ this -> varAttr ) ) { $ this -> varAttr [ $ name ] = $ value ; } return $ this ; }
Add new var class to element

@param $name
@param $value
@return $this
Add new var class to element