commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
VerifyEmailChangeModel.php
1 <?php
2 
3 declare(strict_types=1);
10 
15 use stdClass;
16 
21 {
22 
23  public const DISCRIMINATOR_VALUE = 'VerifyEmailChange';
28  protected $type;
29 
34  protected $change;
35 
36 
40  public function __construct(
41  ?string $change = null,
42  ?string $type = null
43  ) {
44  $this->change = $change;
45  $this->type = $type ?? self::DISCRIMINATOR_VALUE;
46  }
47 
52  public function getType()
53  {
54  if (is_null($this->type)) {
56  $data = $this->raw(self::FIELD_TYPE);
57  if (is_null($data)) {
58  return null;
59  }
60  $this->type = (string) $data;
61  }
62 
63  return $this->type;
64  }
65 
70  public function getChange()
71  {
72  if (is_null($this->change)) {
74  $data = $this->raw(self::FIELD_CHANGE);
75  if (is_null($data)) {
76  return null;
77  }
78  $this->change = (string) $data;
79  }
80 
81  return $this->change;
82  }
83 
84 
88  public function setChange(?string $change): void
89  {
90  $this->change = $change;
91  }
92 
93 
94 
95 }