commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CustomerResourceIdentifierBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
18 use stdClass;
19 
24 {
29  private $id;
30 
35  private $key;
36 
43  public function getId()
44  {
45  return $this->id;
46  }
47 
54  public function getKey()
55  {
56  return $this->key;
57  }
58 
63  public function withId(?string $id)
64  {
65  $this->id = $id;
66 
67  return $this;
68  }
69 
74  public function withKey(?string $key)
75  {
76  $this->key = $key;
77 
78  return $this;
79  }
80 
81 
82  public function build(): CustomerResourceIdentifier
83  {
85  $this->id,
86  $this->key
87  );
88  }
89 
90  public static function of(): CustomerResourceIdentifierBuilder
91  {
92  return new self();
93  }
94 }