private function initFromArray(array $fieldArray = [])
    {
        foreach ($fieldArray as $fieldName => $fieldParams) {
            $this->addField($fieldName, Factory::get($fieldParams));
        }
    }
private function initFromArray(array $fieldArray = [])
    {
        foreach ($fieldArray as $fieldName => $fieldParams) {
            $this->addField($fieldName, Factory::get($fieldParams));
        }
    }
private function initFromArray ( array $ fieldArray = [ ] ) { foreach ( $ fieldArray as $ fieldName => $ fieldParams ) { $ this -> addField ( $ fieldName , Factory :: get ( $ fieldParams ) ) ; } }
Recursively creates field instances form their declarations.

@param array $fieldArray Array of declarations.
@throws ConfigurationException If one of declarations are invalid.
Recursively creates field instances form their declarations .