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
38use stdClass;
39
43final class ImportResourceBuilder implements Builder
44{
49 private $key;
50
57 public function getKey()
58 {
59 return $this->key;
60 }
61
66 public function withKey(?string $key)
67 {
68 $this->key = $key;
69
70 return $this;
71 }
72
73
74 public function build(): ImportResource
75 {
76 return new ImportResourceModel(
77 $this->key
78 );
79 }
80
81 public static function of(): ImportResourceBuilder
82 {
83 return new self();
84 }
85}