commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
AssociateRoleKeyReferenceBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
18 use stdClass;
19 
24 {
29  private $key;
30 
37  public function getKey()
38  {
39  return $this->key;
40  }
41 
46  public function withKey(?string $key)
47  {
48  $this->key = $key;
49 
50  return $this;
51  }
52 
53 
54  public function build(): AssociateRoleKeyReference
55  {
57  $this->key
58  );
59  }
60 
61  public static function of(): AssociateRoleKeyReferenceBuilder
62  {
63  return new self();
64  }
65 }