%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /vendor/laravel/framework/src/Illuminate/JsonSchema/Types/
Upload File :
Create Path :
Current File : //vendor/laravel/framework/src/Illuminate/JsonSchema/Types/NumberType.php

<?php

namespace Illuminate\JsonSchema\Types;

class NumberType extends Type
{
    /**
     * The minimum value (inclusive).
     */
    protected int|float|null $minimum = null;

    /**
     * The maximum value (inclusive).
     */
    protected int|float|null $maximum = null;

    /**
     * The number the value must be a multiple of.
     */
    protected int|float|null $multipleOf = null;

    /**
     * Set the minimum value (inclusive).
     */
    public function min(int|float $value): static
    {
        $this->minimum = $value;

        return $this;
    }

    /**
     * Set the maximum value (inclusive).
     */
    public function max(int|float $value): static
    {
        $this->maximum = $value;

        return $this;
    }

    /**
     * Set the number the value must be a multiple of.
     */
    public function multipleOf(int|float $value): static
    {
        $this->multipleOf = $value;

        return $this;
    }

    /**
     * Set the type's default value.
     */
    public function default(int|float $value): static
    {
        $this->default = $value;

        return $this;
    }
}

Zerion Mini Shell 1.0