public function setAttributes(array $attributes)
    {
        foreach ($attributes as $name => $value) {
            $this->bag->setAttribute($this->prefix . $name, $value);
        }
    }
public function setAttributes(array $attributes)
    {
        foreach ($attributes as $name => $value) {
            $this->bag->setAttribute($this->prefix . $name, $value);
        }
    }
public function setAttributes ( array $ attributes ) { foreach ( $ attributes as $ name => $ value ) { $ this -> bag -> setAttribute ( $ this -> prefix . $ name , $ value ) ; } }
set an array of additional attributes

Each attribute is prefixed before setting in the base bag.

@param  array $attributes
@return void
set an array of additional attributes