commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CustomerSetCustomerGroupActionBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
18 use stdClass;
19 
24 {
29  private $customerGroup;
30 
38  public function getCustomerGroup()
39  {
40  return $this->customerGroup instanceof CustomerGroupResourceIdentifierBuilder ? $this->customerGroup->build() : $this->customerGroup;
41  }
42 
47  public function withCustomerGroup(?CustomerGroupResourceIdentifier $customerGroup)
48  {
49  $this->customerGroup = $customerGroup;
50 
51  return $this;
52  }
53 
59  {
60  $this->customerGroup = $customerGroup;
61 
62  return $this;
63  }
64 
66  {
68  $this->customerGroup instanceof CustomerGroupResourceIdentifierBuilder ? $this->customerGroup->build() : $this->customerGroup
69  );
70  }
71 
72  public static function of(): CustomerSetCustomerGroupActionBuilder
73  {
74  return new self();
75  }
76 }