public function applyConfig(array $config)
    {
        if (isset($config['description'])) {
            $this->description = $config['description'];
        }

        if (isset($config['default'])) {
            $this->defaultValue = $config['default'];
        }

        if (isset($config['required'])) {
            $this->required = (boolean) $config['required'];
        }
    }
public function applyConfig(array $config)
    {
        if (isset($config['description'])) {
            $this->description = $config['description'];
        }

        if (isset($config['default'])) {
            $this->defaultValue = $config['default'];
        }

        if (isset($config['required'])) {
            $this->required = (boolean) $config['required'];
        }
    }
public function applyConfig ( array $ config ) { if ( isset ( $ config [ 'description' ] ) ) { $ this -> description = $ config [ 'description' ] ; } if ( isset ( $ config [ 'default' ] ) ) { $ this -> defaultValue = $ config [ 'default' ] ; } if ( isset ( $ config [ 'required' ] ) ) { $ this -> required = ( boolean ) $ config [ 'required' ] ; } }
Applies an array of configuration to the scaffolder
@param  array  $config
@return void
Applies an array of configuration to the scaffolder