commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CustomObjectKeyReferenceBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
22 {
27  private $key;
28 
33  private $container;
34 
39  public function getKey()
40  {
41  return $this->key;
42  }
43 
48  public function getContainer()
49  {
50  return $this->container;
51  }
52 
57  public function withKey(?string $key)
58  {
59  $this->key = $key;
60 
61  return $this;
62  }
63 
68  public function withContainer(?string $container)
69  {
70  $this->container = $container;
71 
72  return $this;
73  }
74 
75 
76  public function build(): CustomObjectKeyReference
77  {
79  $this->key,
80  $this->container
81  );
82  }
83 
84  public static function of(): CustomObjectKeyReferenceBuilder
85  {
86  return new self();
87  }
88 }