public function setAttr($name, $value = null)
    {
        $wrapper = $this->getWrapper();
        
        // set attribute.
        $wrapper[$name] = $value;

        return $this->setWrapper($wrapper);
    }
public function setAttr($name, $value = null)
    {
        $wrapper = $this->getWrapper();
        
        // set attribute.
        $wrapper[$name] = $value;

        return $this->setWrapper($wrapper);
    }
public function setAttr ( $ name , $ value = null ) { $ wrapper = $ this -> getWrapper ( ) ; // set attribute. $ wrapper [ $ name ] = $ value ; return $ this -> setWrapper ( $ wrapper ) ; }
Set specified Attr of a Wrapper container

@param string $name Attribute name, ex. 'class'.
@param string|null $value Attribute value, ex. 'my-class'.

@return FieldBuilder
Set specified Attr of a Wrapper container