commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CustomerEmailVerifyModel.php
1 <?php
2 
3 declare(strict_types=1);
10 
15 use stdClass;
16 
21 {
26  protected $version;
27 
32  protected $tokenValue;
33 
34 
38  public function __construct(
39  ?int $version = null,
40  ?string $tokenValue = null
41  ) {
42  $this->version = $version;
43  $this->tokenValue = $tokenValue;
44  }
45 
52  public function getVersion()
53  {
54  if (is_null($this->version)) {
56  $data = $this->raw(self::FIELD_VERSION);
57  if (is_null($data)) {
58  return null;
59  }
60  $this->version = (int) $data;
61  }
62 
63  return $this->version;
64  }
65 
72  public function getTokenValue()
73  {
74  if (is_null($this->tokenValue)) {
76  $data = $this->raw(self::FIELD_TOKEN_VALUE);
77  if (is_null($data)) {
78  return null;
79  }
80  $this->tokenValue = (string) $data;
81  }
82 
83  return $this->tokenValue;
84  }
85 
86 
90  public function setVersion(?int $version): void
91  {
92  $this->version = $version;
93  }
94 
98  public function setTokenValue(?string $tokenValue): void
99  {
100  $this->tokenValue = $tokenValue;
101  }
102 }
__construct(?int $version=null, ?string $tokenValue=null)