diff --git a/src/Headers/Header.php b/src/Headers/Header.php index bbc7929..14025d6 100644 --- a/src/Headers/Header.php +++ b/src/Headers/Header.php @@ -21,6 +21,14 @@ public function __construct(object $data, array $options = []) $this->options = $options; } + public static function asMustUnderstand(object $data): Header + { + $header = new Header($data); + $header->mustUnderstand(); + + return $header; + } + public function getData(): object { return $this->data;