Skip to content

Commit 903bcbc

Browse files
committed
Header attribute and config setters added
1 parent 12414a0 commit 903bcbc

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/Header.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,4 +761,26 @@ public function getAttributes(): array {
761761
return $this->attributes;
762762
}
763763

764+
/**
765+
* Set all header attributes
766+
* @param array $attributes
767+
*
768+
* @return Header
769+
*/
770+
public function setAttributes(array $attributes): Header {
771+
$this->attributes = $attributes;
772+
return $this;
773+
}
774+
775+
/**
776+
* Set the configuration used for parsing a raw header
777+
* @param array $config
778+
*
779+
* @return Header
780+
*/
781+
public function setConfig(array $config): Header {
782+
$this->config = $config;
783+
return $this;
784+
}
785+
764786
}

0 commit comments

Comments
 (0)