commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
ImportResourceBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
38 use stdClass;
39 
43 final 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 }