Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
forbidals
/
wp-content
/
plugins
/
wpforms-lite
/
vendor_prefixed
/
square
/
square
/
src
/
Models
/
Builders
:
CustomerSortBuilder.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php declare (strict_types=1); namespace WPForms\Vendor\Square\Models\Builders; use WPForms\Vendor\Core\Utils\CoreHelper; use WPForms\Vendor\Square\Models\CustomerSort; /** * Builder for model CustomerSort * * @see CustomerSort */ class CustomerSortBuilder { /** * @var CustomerSort */ private $instance; private function __construct(CustomerSort $instance) { $this->instance = $instance; } /** * Initializes a new Customer Sort Builder object. */ public static function init() : self { return new self(new CustomerSort()); } /** * Sets field field. * * @param string|null $value */ public function field(?string $value) : self { $this->instance->setField($value); return $this; } /** * Sets order field. * * @param string|null $value */ public function order(?string $value) : self { $this->instance->setOrder($value); return $this; } /** * Initializes a new Customer Sort object. */ public function build() : CustomerSort { return CoreHelper::clone($this->instance); } }