protected function initialize(array $fields)
    {
        $this->content = new Content;
        $this->revision = new Revision;

        foreach ($fields as $field => $settings) {
            $this->data[$field] = $this->initializeField($field, $settings);
        }
    }
protected function initialize(array $fields)
    {
        $this->content = new Content;
        $this->revision = new Revision;

        foreach ($fields as $field => $settings) {
            $this->data[$field] = $this->initializeField($field, $settings);
        }
    }
protected function initialize ( array $ fields ) { $ this -> content = new Content ; $ this -> revision = new Revision ; foreach ( $ fields as $ field => $ settings ) { $ this -> data [ $ field ] = $ this -> initializeField ( $ field , $ settings ) ; } }
Creates the Content, Revision and FieldCollections

@param array $fields The fields and their configurations
@throws InvalidFieldTypeException
@throws ReservedFieldNameException
Creates the Content Revision and FieldCollections