com\setasign\SetaFramework\Controller

ControllerInterface

File: /SetaFramework/src/Controller/ControllerInterface.php

Implemented in

Summary

Methods

getParam()

abstract public ControllerInterface::getParam (
string $name,
mixed $default = null
): ?mixed

Returns a param if it exists otherwise this will return $default

Parameters
$name : string
 
$default : mixed
 

getParams()

abstract public ControllerInterface::getParams (
void
): array

Get all existing params

getResponse()

abstract public ControllerInterface::getResponse (
void
): \Psr\Http\Message\ResponseInterface

Returns the response. If the view isn't rendered yet, it will be rendered.

resetResponse()

abstract public ControllerInterface::resetResponse (
void
): void

Resets the view

setParam()

abstract public ControllerInterface::setParam (
string $name,
mixed $value
): self

Sets a param

Parameters
$name : string
 
$value : mixed
 

setParams()

abstract public ControllerInterface::setParams (
array $params
): self

Set an array of params

Note: The params will be merged with the existing params!!

Parameters
$params : array