FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
ameliabooking
/
vendor
/
square
/
square
/
src
/
Models
/
Builders
Edit File: MerchantBuilder.php
<?php declare(strict_types=1); namespace Square\Models\Builders; use Core\Utils\CoreHelper; use Square\Models\Merchant; /** * Builder for model Merchant * * @see Merchant */ class MerchantBuilder { /** * @var Merchant */ private $instance; private function __construct(Merchant $instance) { $this->instance = $instance; } /** * Initializes a new merchant Builder object. */ public static function init(string $country): self { return new self(new Merchant($country)); } /** * Sets id field. */ public function id(?string $value): self { $this->instance->setId($value); return $this; } /** * Sets business name field. */ public function businessName(?string $value): self { $this->instance->setBusinessName($value); return $this; } /** * Unsets business name field. */ public function unsetBusinessName(): self { $this->instance->unsetBusinessName(); return $this; } /** * Sets language code field. */ public function languageCode(?string $value): self { $this->instance->setLanguageCode($value); return $this; } /** * Unsets language code field. */ public function unsetLanguageCode(): self { $this->instance->unsetLanguageCode(); return $this; } /** * Sets currency field. */ public function currency(?string $value): self { $this->instance->setCurrency($value); return $this; } /** * Sets status field. */ public function status(?string $value): self { $this->instance->setStatus($value); return $this; } /** * Sets main location id field. */ public function mainLocationId(?string $value): self { $this->instance->setMainLocationId($value); return $this; } /** * Unsets main location id field. */ public function unsetMainLocationId(): self { $this->instance->unsetMainLocationId(); return $this; } /** * Sets created at field. */ public function createdAt(?string $value): self { $this->instance->setCreatedAt($value); return $this; } /** * Initializes a new merchant object. */ public function build(): Merchant { return CoreHelper::clone($this->instance); } }
Save
Back