# ControllerArgumentsInterface

Chevere\Interfaces\Controller\ControllerArgumentsInterface

view source

# Implements

# Description

Describes the component in charge of handling controller arguments.

# Methods

# __construct()

# Parameters

  1. ControllerParametersInterface $parameters
  2. array $arguments

# toArray()

Provides access to the controller arguments as array.

RETURN

array

return [
    'parameter_name' => 'argument',
];

# withArgument()

Return an instance with the specified controller argument.

# Parameters

  1. string $name
  2. string $value

THROWS

RETURN

ControllerArgumentsInterface

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


# has()

Indicates whether the instance has an argument for the parameter $name.

# Parameters

  1. string $name

RETURN

bool


# get()

Provides access to the argument value for the parameter $name.

# Parameters

  1. string $name

RETURN

void


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