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