# IntegerParameterInterface

Chevere\Interfaces\Parameter\IntegerParameterInterface

view source (opens new window)

# Extends

# Description

Describes the component in charge of defining a parameter of type integer.

# Methods

# withDefault

Return an instance with the specified $default value.

Parameters

  • value: int

Return

self

This method MUST retain the state of the current instance, and return an instance that contains the specified $default value.


# default

Provides access to the default value.

Return

int


# type

Provides access to the type instance.


# withDescription

Parameters

  • description: string

Return

static


# withAddedAttribute

Return an instance with the specified $attributes added.

Parameters

  • ...attributes: string

Return

static

This method MUST retain the state of the current instance, and return an instance that contains the specified $attributes added.


# withoutAttribute

Return an instance with the specified $attributes removed.

Parameters

  • ...attributes: string

Return

static

This method MUST retain the state of the current instance, and return an instance that contains the specified $attributes removed.


# hasAttribute

Indicates whether the instance has the given $attributes.

Parameters

  • ...attributes: string

Return

bool


# attributes

Provides access to the attributes instance.


# description

Provides access to the description.

Return

string


# getDescription

Defines the description.

Return

string


Last Updated: 5/1/2021, 2:31:10 PM