commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CustomerCreateEmailTokenModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
21{
26 protected $id;
27
32 protected $version;
33
38 protected $ttlMinutes;
39
40
44 public function __construct(
45 ?string $id = null,
46 ?int $version = null,
47 ?int $ttlMinutes = null
48 ) {
49 $this->id = $id;
50 $this->version = $version;
51 $this->ttlMinutes = $ttlMinutes;
52 }
53
60 public function getId()
61 {
62 if (is_null($this->id)) {
64 $data = $this->raw(self::FIELD_ID);
65 if (is_null($data)) {
66 return null;
67 }
68 $this->id = (string) $data;
69 }
70
71 return $this->id;
72 }
73
80 public function getVersion()
81 {
82 if (is_null($this->version)) {
84 $data = $this->raw(self::FIELD_VERSION);
85 if (is_null($data)) {
86 return null;
87 }
88 $this->version = (int) $data;
89 }
90
91 return $this->version;
92 }
93
100 public function getTtlMinutes()
101 {
102 if (is_null($this->ttlMinutes)) {
104 $data = $this->raw(self::FIELD_TTL_MINUTES);
105 if (is_null($data)) {
106 return null;
107 }
108 $this->ttlMinutes = (int) $data;
109 }
110
111 return $this->ttlMinutes;
112 }
113
114
118 public function setId(?string $id): void
119 {
120 $this->id = $id;
121 }
122
126 public function setVersion(?int $version): void
127 {
128 $this->version = $version;
129 }
130
134 public function setTtlMinutes(?int $ttlMinutes): void
135 {
136 $this->ttlMinutes = $ttlMinutes;
137 }
138}
__construct(?string $id=null, ?int $version=null, ?int $ttlMinutes=null)