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
44use stdClass;
45
49final class ImportResourceBuilder implements Builder
50{
55 private $key;
56
63 public function getKey()
64 {
65 return $this->key;
66 }
67
72 public function withKey(?string $key)
73 {
74 $this->key = $key;
75
76 return $this;
77 }
78
79
80 public function build(): ImportResource
81 {
82 return new ImportResourceModel(
83 $this->key
84 );
85 }
86
87 public static function of(): ImportResourceBuilder
88 {
89 return new self();
90 }
91}