From 063c82755b9a3e698842cdf983c41b728b6fcdcf Mon Sep 17 00:00:00 2001 From: Asmir Mustafic Date: Sun, 3 Jan 2021 16:10:54 +0100 Subject: [PATCH] headers --- src/Headers/Header.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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;