commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
CustomFieldEnumTypeBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
21 final class CustomFieldEnumTypeBuilder implements Builder
22 {
27  private $values;
28 
35  public function getValues()
36  {
37  return $this->values;
38  }
39 
44  public function withValues(?CustomFieldEnumValueCollection $values)
45  {
46  $this->values = $values;
47 
48  return $this;
49  }
50 
51 
52  public function build(): CustomFieldEnumType
53  {
54  return new CustomFieldEnumTypeModel(
55  $this->values
56  );
57  }
58 
59  public static function of(): CustomFieldEnumTypeBuilder
60  {
61  return new self();
62  }
63 }