class ManyToOneFieldGenerator extends AbstractFieldGenerator (View source)

Class ManyToOneFieldGenerator

Properties

protected NodeTypeField $field from AbstractFieldGenerator

Methods

__construct(NodeTypeField $field)

AbstractFieldGenerator constructor.

static 
flattenORMParameters(array $ormParams)

No description

string
getField()

Generate PHP code for current doctrine field.

string
getFieldAnnotation()

No description

getFieldDeclaration()

Generate PHP property declaration block.

string
getFieldGetter()

No description

string
getFieldAlternativeGetter()

Generate PHP alternative getter method block.

string
getFieldSetter()

No description

string
getFieldIndex()

Generate PHP annotation block for Doctrine table indexes.

string
getFieldConstructorInitialization()

Generate PHP property initialization for class constructor.

Details

__construct(NodeTypeField $field)

AbstractFieldGenerator constructor.

Parameters

NodeTypeField $field

static flattenORMParameters(array $ormParams)

Parameters

array $ormParams

string getField()

Generate PHP code for current doctrine field.

Return Value

string

string getFieldAnnotation()

Return Value

string

protected getFieldDeclaration()

Generate PHP property declaration block.

string getFieldGetter()

Return Value

string

protected string getFieldAlternativeGetter()

Generate PHP alternative getter method block.

Return Value

string

string getFieldSetter()

Return Value

string

string getFieldIndex()

Generate PHP annotation block for Doctrine table indexes.

Return Value

string

string getFieldConstructorInitialization()

Generate PHP property initialization for class constructor.

Return Value

string