1 | <?php |
||
20 | class CustomObjectCreateRequest extends AbstractCreateRequest |
||
21 | { |
||
22 | protected $resultClass = '\Commercetools\Core\Model\CustomObject\CustomObject'; |
||
23 | |||
24 | /** |
||
25 | * @param CustomObjectDraft|CustomObject $customObject |
||
26 | * @param Context $context |
||
27 | */ |
||
28 | 11 | public function __construct($customObject, Context $context = null) |
|
35 | |||
36 | /** |
||
37 | * @param CustomObjectDraft|CustomObject $customObject |
||
38 | * @param Context $context |
||
39 | * @return static |
||
40 | */ |
||
41 | 11 | public static function ofObject($customObject, Context $context = null) |
|
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) |
||
55 | } |
||
56 |