RequestVisitorInterface
in
Location visitor used to add values to different locations in a request with different behaviors as needed
Table of Contents
Methods
- after() : mixed
- Called after visiting all parameters
- visit() : mixed
- Called once for each parameter being visited that matches the location type
Methods
after()
Called after visiting all parameters
public
after(CommandInterface $command, RequestInterface $request) : mixed
Parameters
- $command : CommandInterface
-
Command being visited
- $request : RequestInterface
-
Request being visited
visit()
Called once for each parameter being visited that matches the location type
public
visit(CommandInterface $command, RequestInterface $request, Parameter $param, mixed $value) : mixed
Parameters
- $command : CommandInterface
-
Command being visited
- $request : RequestInterface
-
Request being visited
- $param : Parameter
-
Parameter being visited
- $value : mixed
-
Value to set