commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ReferenceSetAttributeBuilder.php
1<?php
2
3declare(strict_types=1);
10
17use stdClass;
18
23{
28 private $name;
29
34 private $value;
35
44 public function getName()
45 {
46 return $this->name;
47 }
48
56 public function getValue()
57 {
58 return $this->value;
59 }
60
65 public function withName(?string $name)
66 {
67 $this->name = $name;
68
69 return $this;
70 }
71
76 public function withValue(?KeyReferenceCollection $value)
77 {
78 $this->value = $value;
79
80 return $this;
81 }
82
83
84 public function build(): ReferenceSetAttribute
85 {
87 $this->name,
88 $this->value
89 );
90 }
91
92 public static function of(): ReferenceSetAttributeBuilder
93 {
94 return new self();
95 }
96}