commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CustomerSetAuthenticationModeActionModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
21{
22 public const DISCRIMINATOR_VALUE = 'setAuthenticationMode';
27 protected $action;
28
33 protected $authMode;
34
39 protected $password;
40
41
45 public function __construct(
46 ?string $authMode = null,
47 ?string $password = null,
48 ?string $action = null
49 ) {
50 $this->authMode = $authMode;
51 $this->password = $password;
52 $this->action = $action ?? self::DISCRIMINATOR_VALUE;
53 }
54
59 public function getAction()
60 {
61 if (is_null($this->action)) {
63 $data = $this->raw(self::FIELD_ACTION);
64 if (is_null($data)) {
65 return null;
66 }
67 $this->action = (string) $data;
68 }
69
70 return $this->action;
71 }
72
80 public function getAuthMode()
81 {
82 if (is_null($this->authMode)) {
84 $data = $this->raw(self::FIELD_AUTH_MODE);
85 if (is_null($data)) {
86 return null;
87 }
88 $this->authMode = (string) $data;
89 }
90
91 return $this->authMode;
92 }
93
100 public function getPassword()
101 {
102 if (is_null($this->password)) {
104 $data = $this->raw(self::FIELD_PASSWORD);
105 if (is_null($data)) {
106 return null;
107 }
108 $this->password = (string) $data;
109 }
110
111 return $this->password;
112 }
113
114
118 public function setAuthMode(?string $authMode): void
119 {
120 $this->authMode = $authMode;
121 }
122
126 public function setPassword(?string $password): void
127 {
128 $this->password = $password;
129 }
130}
__construct(?string $authMode=null, ?string $password=null, ?string $action=null)