function addPropertiesAndConstantsFromReflection(ClassReflection $classReflection ) {
        $constants = $classReflection->getConstants();
        foreach ($constants as $name => $value) {
            $this->generator->addProperty($name, $value, PropertyGenerator::FLAG_CONSTANT);
        }

        $properties = $classReflection->getProperties();
        foreach ($properties as $property) {
            $newProperty = PropertyGenerator::fromReflection($property);
            $newProperty->setVisibility(\Danack\Code\Generator\AbstractMemberGenerator::FLAG_PRIVATE);
            $this->generator->addPropertyFromGenerator($newProperty);
        }
    }
function addPropertiesAndConstantsFromReflection(ClassReflection $classReflection ) {
        $constants = $classReflection->getConstants();
        foreach ($constants as $name => $value) {
            $this->generator->addProperty($name, $value, PropertyGenerator::FLAG_CONSTANT);
        }

        $properties = $classReflection->getProperties();
        foreach ($properties as $property) {
            $newProperty = PropertyGenerator::fromReflection($property);
            $newProperty->setVisibility(\Danack\Code\Generator\AbstractMemberGenerator::FLAG_PRIVATE);
            $this->generator->addPropertyFromGenerator($newProperty);
        }
    }
function addPropertiesAndConstantsFromReflection ( ClassReflection $ classReflection ) { $ constants = $ classReflection -> getConstants ( ) ; foreach ( $ constants as $ name => $ value ) { $ this -> generator -> addProperty ( $ name , $ value , PropertyGenerator :: FLAG_CONSTANT ) ; } $ properties = $ classReflection -> getProperties ( ) ; foreach ( $ properties as $ property ) { $ newProperty = PropertyGenerator :: fromReflection ( $ property ) ; $ newProperty -> setVisibility ( \ Danack \ Code \ Generator \ AbstractMemberGenerator :: FLAG_PRIVATE ) ; $ this -> generator -> addPropertyFromGenerator ( $ newProperty ) ; } }
addPropertiesAndConstantsFromReflection - does what it's name says.

@param ClassReflection $classReflection
@internal param $originalSourceClass
addPropertiesAndConstantsFromReflection - does what it s name says .