commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
DateTimeSetAttributeBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $name;
28
33 private $value;
34
43 public function getName()
44 {
45 return $this->name;
46 }
47
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(?DateTimeImmutableCollection $value)
77 {
78 $this->value = $value;
79
80 return $this;
81 }
82
83
84 public function build(): DateTimeSetAttribute
85 {
87 $this->name,
88 $this->value
89 );
90 }
91
92 public static function of(): DateTimeSetAttributeBuilder
93 {
94 return new self();
95 }
96}