Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 7482d1b

Browse files
author
Jens Schulze
committed
feat(CustomObject): add constructor using custom object draft
Closes #258
1 parent ac487a3 commit 7482d1b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Request/CustomObjects/CustomObjectCreateRequest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,14 @@ public static function ofObject($customObject, Context $context = null)
4242
{
4343
return new static($customObject, $context);
4444
}
45+
46+
/**
47+
* @param CustomObjectDraft $customObject
48+
* @param Context|null $context
49+
* @return static
50+
*/
51+
public static function ofDraft(CustomObjectDraft $customObject, Context $context = null)
52+
{
53+
return new static($customObject, $context);
54+
}
4555
}

0 commit comments

Comments
 (0)