# ParametersInterface

Chevere\Interfaces\Parameter\ParametersInterface

view source (opens new window)

# Extends

# Description

Describes the component in charge of collecting objects implementing ParameterInterface.

# Methods

# __construct

Parameters


# getGenerator


# withAdded

Return an instance with the specified required $parameters instance added.

Parameters

Return

self

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


# withAddedOptional

Return an instance with the specified optional $parameters instance added.

Parameters

Return

self

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


# withModify

Return an instance with the specified $parameters modifying an already added parameter.

Parameters

Return

self

This method MUST retain the state of the current instance, and return an instance that contains the specified $parameters modifying an already added parameter.


# has

Indicates whether the instance has a parameter by name.

Parameters

  • parameter: string

Return

bool


# isRequired

Indicates whether the $parameter identified by its name is required.

Parameters

  • parameter: string

Return

bool


# isOptional

Indicates whether the $parameter identified by its name is optional.

Parameters

  • parameter: string

Return

bool


# get

Parameters

  • parameter: string

# required


# optional


# keys

Provides access to the object keys.

Return

array


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