class AbstractFieldGenerator (View source)

Properties

protected NodeTypeField $field

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()

Generate PHP alternative getter method block.

string
getFieldAlternativeGetter()

Generate PHP alternative getter method block.

string
getFieldSetter()

Generate PHP setter method block.

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

protected string getFieldAnnotation()

Return Value

string

protected getFieldDeclaration()

Generate PHP property declaration block.

abstract protected string getFieldGetter()

Generate PHP alternative getter method block.

Return Value

string

protected string getFieldAlternativeGetter()

Generate PHP alternative getter method block.

Return Value

string

protected string getFieldSetter()

Generate PHP setter method block.

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