File "FloatNumberRangeBuilder.php"
Full Path: /home/capoeirajd/www/wp-content/plugins/wpforms-lite/vendor_prefixed/square/square/src/Models/Builders/FloatNumberRangeBuilder.php
File size: 1.52 KB
MIME-type: text/x-php
Charset: utf-8
<?php
declare (strict_types=1);
namespace WPForms\Vendor\Square\Models\Builders;
use WPForms\Vendor\Core\Utils\CoreHelper;
use WPForms\Vendor\Square\Models\FloatNumberRange;
/**
* Builder for model FloatNumberRange
*
* @see FloatNumberRange
*/
class FloatNumberRangeBuilder
{
/**
* @var FloatNumberRange
*/
private $instance;
private function __construct(FloatNumberRange $instance)
{
$this->instance = $instance;
}
/**
* Initializes a new Float Number Range Builder object.
*/
public static function init() : self
{
return new self(new FloatNumberRange());
}
/**
* Sets start at field.
*
* @param string|null $value
*/
public function startAt(?string $value) : self
{
$this->instance->setStartAt($value);
return $this;
}
/**
* Unsets start at field.
*/
public function unsetStartAt() : self
{
$this->instance->unsetStartAt();
return $this;
}
/**
* Sets end at field.
*
* @param string|null $value
*/
public function endAt(?string $value) : self
{
$this->instance->setEndAt($value);
return $this;
}
/**
* Unsets end at field.
*/
public function unsetEndAt() : self
{
$this->instance->unsetEndAt();
return $this;
}
/**
* Initializes a new Float Number Range object.
*/
public function build() : FloatNumberRange
{
return CoreHelper::clone($this->instance);
}
}