commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ImportResourceBuilder.php
1<?php
2
3declare(strict_types=1);
10
40use stdClass;
41
45final class ImportResourceBuilder implements Builder
46{
51 private $key;
52
59 public function getKey()
60 {
61 return $this->key;
62 }
63
68 public function withKey(?string $key)
69 {
70 $this->key = $key;
71
72 return $this;
73 }
74
75
76 public function build(): ImportResource
77 {
78 return new ImportResourceModel(
79 $this->key
80 );
81 }
82
83 public static function of(): ImportResourceBuilder
84 {
85 return new self();
86 }
87}