PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
charitable / vendor / square / square / src / Legacy / Models / Builders / SubscriptionTestResultBuilder.php

SubscriptionTestResultBuilder.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13, at vendor/square/square/src/Legacy/Models/Builders/SubscriptionTestResultBuilder.php

116 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Square\Legacy\Models\Builders;
6
7 use Core\Utils\CoreHelper;
8 use Square\Legacy\Models\SubscriptionTestResult;
9
10 /**
11 * Builder for model SubscriptionTestResult
12 *
13 * @see SubscriptionTestResult
14 */
15 class SubscriptionTestResultBuilder
16 {
17 /**
18 * @var SubscriptionTestResult
19 */
20 private $instance;
21
22 private function __construct(SubscriptionTestResult $instance)
23 {
24 $this->instance = $instance;
25 }
26
27 /**
28 * Initializes a new Subscription Test Result Builder object.
29 */
30 public static function init(): self
31 {
32 return new self(new SubscriptionTestResult());
33 }
34
35 /**
36 * Sets id field.
37 *
38 * @param string|null $value
39 */
40 public function id(?string $value): self
41 {
42 $this->instance->setId($value);
43 return $this;
44 }
45
46 /**
47 * Sets status code field.
48 *
49 * @param int|null $value
50 */
51 public function statusCode(?int $value): self
52 {
53 $this->instance->setStatusCode($value);
54 return $this;
55 }
56
57 /**
58 * Unsets status code field.
59 */
60 public function unsetStatusCode(): self
61 {
62 $this->instance->unsetStatusCode();
63 return $this;
64 }
65
66 /**
67 * Sets payload field.
68 *
69 * @param string|null $value
70 */
71 public function payload(?string $value): self
72 {
73 $this->instance->setPayload($value);
74 return $this;
75 }
76
77 /**
78 * Unsets payload field.
79 */
80 public function unsetPayload(): self
81 {
82 $this->instance->unsetPayload();
83 return $this;
84 }
85
86 /**
87 * Sets created at field.
88 *
89 * @param string|null $value
90 */
91 public function createdAt(?string $value): self
92 {
93 $this->instance->setCreatedAt($value);
94 return $this;
95 }
96
97 /**
98 * Sets updated at field.
99 *
100 * @param string|null $value
101 */
102 public function updatedAt(?string $value): self
103 {
104 $this->instance->setUpdatedAt($value);
105 return $this;
106 }
107
108 /**
109 * Initializes a new Subscription Test Result object.
110 */
111 public function build(): SubscriptionTestResult
112 {
113 return CoreHelper::clone($this->instance);
114 }
115 }
116