PHP Class WellCommerce\Bundle\DoctrineBundle\Enhancer\AbstractMappingEnhancer

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Bundle\DoctrineBundle\Enhancer\MappingEnhancerInterface
Show file Open project: wellcommerce/wellcommerce

Public Methods

Method Description
supportsEntity ( string $className ) : boolean
supportsEntityExtraTrait ( string $className ) : boolean
visitClassMetadata ( Doctrine\ORM\Mapping\ClassMetadataInfo $metadata )
visitTraitGenerator ( Wingu\OctopusCore\CodeGenerator\PHP\OOP\TraitGenerator $generator )

Protected Methods

Method Description
addGetterMethod ( Wingu\OctopusCore\CodeGenerator\PHP\OOP\TraitGenerator $generator, string $property ) Adds a getter method to generator
addProperty ( Wingu\OctopusCore\CodeGenerator\PHP\OOP\TraitGenerator $generator, string $property ) Adds a property to generator
addSetterMethod ( Wingu\OctopusCore\CodeGenerator\PHP\OOP\TraitGenerator $generator, string $property ) Adds a setter method to generator
configureMappingDefinition ( WellCommerce\Bundle\DoctrineBundle\Definition\MappingDefinitionCollection $collection )
getMappingDefinitionCollection ( ) : WellCommerce\Bundle\DoctrineBundle\Definition\MappingDefinitionCollection

Private Methods

Method Description
extendClassMetadata ( Doctrine\ORM\Mapping\ClassMetadataInfo $metadata, WellCommerce\Bundle\DoctrineBundle\Definition\MappingDefinitionCollection $collection ) Extends the mapping
extendTrait ( Wingu\OctopusCore\CodeGenerator\PHP\OOP\TraitGenerator $generator, WellCommerce\Bundle\DoctrineBundle\Definition\MappingDefinitionCollection $collection ) Extend the trait

Method Details

addGetterMethod() protected method

Adds a getter method to generator
protected addGetterMethod ( Wingu\OctopusCore\CodeGenerator\PHP\OOP\TraitGenerator $generator, string $property )
$generator Wingu\OctopusCore\CodeGenerator\PHP\OOP\TraitGenerator
$property string

addProperty() protected method

Adds a property to generator
protected addProperty ( Wingu\OctopusCore\CodeGenerator\PHP\OOP\TraitGenerator $generator, string $property )
$generator Wingu\OctopusCore\CodeGenerator\PHP\OOP\TraitGenerator
$property string

addSetterMethod() protected method

Adds a setter method to generator
protected addSetterMethod ( Wingu\OctopusCore\CodeGenerator\PHP\OOP\TraitGenerator $generator, string $property )
$generator Wingu\OctopusCore\CodeGenerator\PHP\OOP\TraitGenerator
$property string

configureMappingDefinition() abstract protected method

abstract protected configureMappingDefinition ( WellCommerce\Bundle\DoctrineBundle\Definition\MappingDefinitionCollection $collection )
$collection WellCommerce\Bundle\DoctrineBundle\Definition\MappingDefinitionCollection

getMappingDefinitionCollection() protected method

protected getMappingDefinitionCollection ( ) : WellCommerce\Bundle\DoctrineBundle\Definition\MappingDefinitionCollection
return WellCommerce\Bundle\DoctrineBundle\Definition\MappingDefinitionCollection

supportsEntity() public method

public supportsEntity ( string $className ) : boolean
$className string
return boolean

supportsEntityExtraTrait() public method

public supportsEntityExtraTrait ( string $className ) : boolean
$className string
return boolean

visitClassMetadata() public method

public visitClassMetadata ( Doctrine\ORM\Mapping\ClassMetadataInfo $metadata )
$metadata Doctrine\ORM\Mapping\ClassMetadataInfo

visitTraitGenerator() public method

public visitTraitGenerator ( Wingu\OctopusCore\CodeGenerator\PHP\OOP\TraitGenerator $generator )
$generator Wingu\OctopusCore\CodeGenerator\PHP\OOP\TraitGenerator