public function set_attribute( $key, $value ) {
		$this->attributes[ $key ] = $this->sanitize_attribute( $key, $value );

		return $this;
	}
public function set_attribute( $key, $value ) {
		$this->attributes[ $key ] = $this->sanitize_attribute( $key, $value );

		return $this;
	}
public function set_attribute ( $ key , $ value ) { $ this -> attributes [ $ key ] = $ this -> sanitize_attribute ( $ key , $ value ) ; return $ this ; }
Sets an attribute to new value.

@param  string $key   Name of attribute to set.
@param  mixed  $value Value of new attribute.
@return $this
Sets an attribute to new value .