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.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 1.7.0.9 All 211 releases
charitable / vendor / square / square / src / Legacy / Models / Builders / RetrieveInventoryChangesResponseBuilder.php

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

78 lines 1.6 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\Error;
9 use Square\Legacy\Models\InventoryChange;
10 use Square\Legacy\Models\RetrieveInventoryChangesResponse;
11
12 /**
13 * Builder for model RetrieveInventoryChangesResponse
14 *
15 * @see RetrieveInventoryChangesResponse
16 */
17 class RetrieveInventoryChangesResponseBuilder
18 {
19 /**
20 * @var RetrieveInventoryChangesResponse
21 */
22 private $instance;
23
24 private function __construct(RetrieveInventoryChangesResponse $instance)
25 {
26 $this->instance = $instance;
27 }
28
29 /**
30 * Initializes a new Retrieve Inventory Changes Response Builder object.
31 */
32 public static function init(): self
33 {
34 return new self(new RetrieveInventoryChangesResponse());
35 }
36
37 /**
38 * Sets errors field.
39 *
40 * @param Error[]|null $value
41 */
42 public function errors(?array $value): self
43 {
44 $this->instance->setErrors($value);
45 return $this;
46 }
47
48 /**
49 * Sets changes field.
50 *
51 * @param InventoryChange[]|null $value
52 */
53 public function changes(?array $value): self
54 {
55 $this->instance->setChanges($value);
56 return $this;
57 }
58
59 /**
60 * Sets cursor field.
61 *
62 * @param string|null $value
63 */
64 public function cursor(?string $value): self
65 {
66 $this->instance->setCursor($value);
67 return $this;
68 }
69
70 /**
71 * Initializes a new Retrieve Inventory Changes Response object.
72 */
73 public function build(): RetrieveInventoryChangesResponse
74 {
75 return CoreHelper::clone($this->instance);
76 }
77 }
78