commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
PaymentMethodTokenModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
21{
26 protected $value;
27
28
32 public function __construct(
33 ?string $value = null
34 ) {
35 $this->value = $value;
36 }
37
55 public function getValue()
56 {
57 if (is_null($this->value)) {
59 $data = $this->raw(self::FIELD_VALUE);
60 if (is_null($data)) {
61 return null;
62 }
63 $this->value = (string) $data;
64 }
65
66 return $this->value;
67 }
68
69
73 public function setValue(?string $value): void
74 {
75 $this->value = $value;
76 }
77}