protected function initDefaults()
    {
        if ($this->properties['header'] === null) {
            $this->setHeader($this->name);
        }
        if ($this->properties['type'] === null) {
            $this->setType(ColumnType::createType(ColumnType::TYPE_STRING));
        }
    }
protected function initDefaults()
    {
        if ($this->properties['header'] === null) {
            $this->setHeader($this->name);
        }
        if ($this->properties['type'] === null) {
            $this->setType(ColumnType::createType(ColumnType::TYPE_STRING));
        }
    }
protected function initDefaults ( ) { if ( $ this -> properties [ 'header' ] === null ) { $ this -> setHeader ( $ this -> name ) ; } if ( $ this -> properties [ 'type' ] === null ) { $ this -> setType ( ColumnType :: createType ( ColumnType :: TYPE_STRING ) ) ; } }
This method ensure some properties are defaulted.
For example header with name and type is string.
This method ensure some properties are defaulted . For example header with name and type is string .