public function setAttributes(array $attributesValues): self
    {
        foreach ($attributesValues as $attribute => $value) {
            $this->setAttribute($attribute, $value);
        }

        return $this;
    }
public function setAttributes(array $attributesValues): self
    {
        foreach ($attributesValues as $attribute => $value) {
            $this->setAttribute($attribute, $value);
        }

        return $this;
    }
public function setAttributes ( array $ attributesValues ) : self { foreach ( $ attributesValues as $ attribute => $ value ) { $ this -> setAttribute ( $ attribute , $ value ) ; } return $ this ; }
Set the value of multiple attributes at once.
@param array $attributesValues
@return $this
Set the value of multiple attributes at once .