Файл: vendor/laravel/framework/src/Illuminate/JsonSchema/Types/IntegerType.php
Строк: 39
<?php
namespace IlluminateJsonSchemaTypes;
class IntegerType extends Type
{
/**
* The minimum value (inclusive).
*/
protected ?int $minimum = null;
/**
* The maximum value (inclusive).
*/
protected ?int $maximum = null;
/**
* The number the value must be a multiple of.
*/
protected ?int $multipleOf = null;
/**
* Set the minimum value (inclusive).
*/
public function min(int $value): static
{
$this->minimum = $value;
return $this;
}
/**
* Set the maximum value (inclusive).
*/
public function max(int $value): static
{
$this->maximum = $value;
return $this;
}
/**
* Set the number the value must be a multiple of.
*/
public function multipleOf(int $value): static
{
$this->multipleOf = $value;
return $this;
}
/**
* Set the type's default value.
*/
public function default(int $value): static
{
$this->default = $value;
return $this;
}
}