Skip to content

Commit

Permalink
headers
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Jan 3, 2021
1 parent d89126f commit 063c827
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Headers/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 063c827

Please sign in to comment.