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