# ControllerParameterInterface

Chevere\Interfaces\Controller\ControllerParameterInterface

view source

# Description

Describes the component in charge of handling controller parameters.

# Methods

# __construct()

# Parameters

  1. string $name

# isRequired()

Indicates whether the parameter is required.

RETURN

bool


# name()

Provides access to the parameter name.

RETURN

string


# regex()

Provides access to the parameter regex instance.


# description()

Provides access to the name instance.

RETURN

string


# withRegex()

Return an instance with the specified regex.

# Parameters

  1. string $regex

RETURN

ControllerParameterInterface

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


# withDescription()

Return an instance with the specified description.

# Parameters

  1. string $string

RETURN

ControllerParameterInterface

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


Last Updated: 8/2/2020, 1:36:58 AM