public function mapAttribute(ClassMetadata $class)
    {
        $this->applyDefaults();
        $this->validate();
        $this->makeGenerator();

        $class->addAttributeMapping($this);
    }
public function mapAttribute(ClassMetadata $class)
    {
        $this->applyDefaults();
        $this->validate();
        $this->makeGenerator();

        $class->addAttributeMapping($this);
    }
public function mapAttribute ( ClassMetadata $ class ) { $ this -> applyDefaults ( ) ; $ this -> validate ( ) ; $ this -> makeGenerator ( ) ; $ class -> addAttributeMapping ( $ this ) ; }
Map this property as an attribute.

@param ClassMetadata $class

@return void
Map this property as an attribute .