Copied!

ValueObjectVisitor

ValueObjectVisitor.php : 17

Basic ValueObjectVisitor.

Properties

protected $requestParser

ValueObjectVisitor.php : 24

URL handler for URL generation.

protected RequestParser $requestParser

protected $router

ValueObjectVisitor.php : 29
protected RouterInterface $router

protected $templateRouter

ValueObjectVisitor.php : 34
protected RouterInterface $templateRouter

Methods

publicsetRequestParser()

ValueObjectVisitor.php : 58
public setRequestParser(RequestParser $requestParser) : mixed

Parameters

Name Type Default value Description
$requestParser RequestParser - -

publicsetRouter()

ValueObjectVisitor.php : 48
public setRouter(RouterInterface $router) : mixed

Parameters

Name Type Default value Description
$router RouterInterface - -

publicsetTemplateRouter()

ValueObjectVisitor.php : 53
public setTemplateRouter(RouterInterface $templateRouter) : mixed

Parameters

Name Type Default value Description
$templateRouter RouterInterface - -

publicvisit()

ValueObjectVisitor.php : 43

Visit struct returned by controllers.

public abstract visit(Visitor $visitor, Generator $generator, mixed $data) : mixed

Parameters

Name Type Default value Description
$visitor Visitor - -
$generator Generator - -
$data mixed - -

protectedserializeBool()

ValueObjectVisitor.php : 71

Returns a string representation for the given $boolValue.

protected serializeBool(Generator $generator, bool $boolValue) : mixed

Parameters

Name Type Default value Description
$generator Generator - -
$boolValue bool - -

protectedserializeSortField()

ValueObjectVisitor.php : 153

Serializes the given $sortField to a string representation.

protected serializeSortField(int $sortField) : string

Parameters

Name Type Default value Description
$sortField int - -

Return values

string

protectedserializeSortOrder()

ValueObjectVisitor.php : 192

Serializes the given $sortOrder to a string representation.

protected serializeSortOrder(int $sortOrder) : string

Parameters

Name Type Default value Description
$sortOrder int - -

Return values

string

protectedvisitDescriptionsList()

ValueObjectVisitor.php : 93

Visits the given list of $descriptions.

protected visitDescriptionsList(Generator $generator, array<string|int, mixed> $descriptions) : mixed

Parameters

Name Type Default value Description
$generator Generator - -
$descriptions array<string|int, mixed> - -

protectedvisitLimitation()

ValueObjectVisitor.php : 123

Visits a limitation.

protected visitLimitation(Generator $generator, Limitation $limitation) : mixed

Parameters

Name Type Default value Description
$generator Generator - -
$limitation Limitation - -

protectedvisitNamesList()

ValueObjectVisitor.php : 82

Visits the given list of $names.

protected visitNamesList(Generator $generator, array<string|int, mixed> $names) : mixed

Parameters

Name Type Default value Description
$generator Generator - -
$names array<string|int, mixed> - -

protectedvisitTranslatedList()

ValueObjectVisitor.php : 105

Visits a list of translated elements.

protected visitTranslatedList(Generator $generator, array<string|int, mixed> $translatedElements, mixed $listName) : mixed

Parameters

Name Type Default value Description
$generator Generator - -
$translatedElements array<string|int, mixed> - -
$listName mixed - -