commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
DirectDiscountReferenceBuilder.php
1<?php
2
3declare(strict_types=1);
10
18use stdClass;
19
24{
29 private $id;
30
37 public function getId()
38 {
39 return $this->id;
40 }
41
46 public function withId(?string $id)
47 {
48 $this->id = $id;
49
50 return $this;
51 }
52
53
54 public function build(): DirectDiscountReference
55 {
57 $this->id
58 );
59 }
60
61 public static function of(): DirectDiscountReferenceBuilder
62 {
63 return new self();
64 }
65}