class Mapper extends BaseCodeGenerator

Mapper class.

Properties

protected string $defaultLocale from BaseCodeGenerator

Methods

__construct(string $defaultLocale)

BaseCodeGenerator constructor.

generate(array $params)

No description

render(Node $node)

Returns a rendered node.

convertToStudlyCaps(string $name)

Converts a string to StudlyCaps.

Use_[]
generateUses(array $classes)

No description

getFieldType(FieldInterface $field)

No description

generateCommentAttributes(string $comment)

No description

Details

in BaseCodeGenerator at line 33
__construct(string $defaultLocale)

BaseCodeGenerator constructor.

Parameters

string $defaultLocale

at line 52
generate(array $params)

Parameters

array $params

in BaseCodeGenerator at line 43
protected render(Node $node)

Returns a rendered node.

Parameters

Node $node

in BaseCodeGenerator at line 66
protected convertToStudlyCaps(string $name)

Converts a string to StudlyCaps.

Parameters

string $name

in BaseCodeGenerator at line 76
protected Use_[] generateUses(array $classes)

Parameters

array $classes string|null> $classes

Return Value

Use_[]

in BaseCodeGenerator at line 97
protected getFieldType(FieldInterface $field)

Parameters

FieldInterface $field

in BaseCodeGenerator at line 123
protected generateCommentAttributes(string $comment)

Parameters

string $comment