commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CustomerCreateEmailTokenBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $id;
28
33 private $version;
34
39 private $ttlMinutes;
40
45 private $invalidateOlderTokens;
46
53 public function getId()
54 {
55 return $this->id;
56 }
57
64 public function getVersion()
65 {
66 return $this->version;
67 }
68
75 public function getTtlMinutes()
76 {
77 return $this->ttlMinutes;
78 }
79
86 public function getInvalidateOlderTokens()
87 {
88 return $this->invalidateOlderTokens;
89 }
90
95 public function withId(?string $id)
96 {
97 $this->id = $id;
98
99 return $this;
100 }
101
106 public function withVersion(?int $version)
107 {
108 $this->version = $version;
109
110 return $this;
111 }
112
117 public function withTtlMinutes(?int $ttlMinutes)
118 {
119 $this->ttlMinutes = $ttlMinutes;
120
121 return $this;
122 }
123
128 public function withInvalidateOlderTokens(?bool $invalidateOlderTokens)
129 {
130 $this->invalidateOlderTokens = $invalidateOlderTokens;
131
132 return $this;
133 }
134
135
137 {
139 $this->id,
140 $this->version,
141 $this->ttlMinutes,
142 $this->invalidateOlderTokens
143 );
144 }
145
146 public static function of(): CustomerCreateEmailTokenBuilder
147 {
148 return new self();
149 }
150}