public function setConfig(AnConfig $config)
    {
        //if the property configuration has been set
        //then don't allow it to change
        if (isset($this->__config)) {
            $this->__config->append($config);
            foreach ($this->__config as $key => $value) {
                $config[$key] = $this->__config[$key];
            }
        } else {
            $this->__config = $config;
        }

        $this->_name = $config->name;

        $this->_initialize($config);

        $this->_unique = $config->unique;
        $this->_required = $config->required;
        $this->_write_access = (int) $config->write;
        $this->_read_access = (int) $config->read;
    }
public function setConfig(AnConfig $config)
    {
        //if the property configuration has been set
        //then don't allow it to change
        if (isset($this->__config)) {
            $this->__config->append($config);
            foreach ($this->__config as $key => $value) {
                $config[$key] = $this->__config[$key];
            }
        } else {
            $this->__config = $config;
        }

        $this->_name = $config->name;

        $this->_initialize($config);

        $this->_unique = $config->unique;
        $this->_required = $config->required;
        $this->_write_access = (int) $config->write;
        $this->_read_access = (int) $config->read;
    }
public function setConfig ( AnConfig $ config ) { //if the property configuration has been set //then don't allow it to change if ( isset ( $ this -> __config ) ) { $ this -> __config -> append ( $ config ) ; foreach ( $ this -> __config as $ key => $ value ) { $ config [ $ key ] = $ this -> __config [ $ key ] ; } } else { $ this -> __config = $ config ; } $ this -> _name = $ config -> name ; $ this -> _initialize ( $ config ) ; $ this -> _unique = $ config -> unique ; $ this -> _required = $ config -> required ; $ this -> _write_access = ( int ) $ config -> write ; $ this -> _read_access = ( int ) $ config -> read ; }
Configures a property. Property are cloned so using this method, it's possibled to
re-configured a cloned property.

@param AnConfig $config Property Configuration
Configures a property . Property are cloned so using this method it s possibled to re - configured a cloned property .