commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
PaymentMethodTokenBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
21final class PaymentMethodTokenBuilder implements Builder
22{
27 private $value;
28
46 public function getValue()
47 {
48 return $this->value;
49 }
50
55 public function withValue(?string $value)
56 {
57 $this->value = $value;
58
59 return $this;
60 }
61
62
63 public function build(): PaymentMethodToken
64 {
65 return new PaymentMethodTokenModel(
66 $this->value
67 );
68 }
69
70 public static function of(): PaymentMethodTokenBuilder
71 {
72 return new self();
73 }
74}