public function finalize() : Values
    {
        /* @var input\Parameter $parameter */
        foreach ($this->definitions as $name => $parameter) {
            if (isset($this->items[$name])) {
                continue;
            }

            // In the case of Parameters which do not accept values (ie. optional flags), we explicitly default them
            // to a boolean false, opposed to a boolean true when they are actually set in input.
            $this->items[$name] = ($value = $parameter->getValue()) ? $value->getDefault() : false;
        }

        return $this;
    }
public function finalize() : Values
    {
        /* @var input\Parameter $parameter */
        foreach ($this->definitions as $name => $parameter) {
            if (isset($this->items[$name])) {
                continue;
            }

            // In the case of Parameters which do not accept values (ie. optional flags), we explicitly default them
            // to a boolean false, opposed to a boolean true when they are actually set in input.
            $this->items[$name] = ($value = $parameter->getValue()) ? $value->getDefault() : false;
        }

        return $this;
    }
public function finalize ( ) : Values { /* @var input\Parameter $parameter */ foreach ( $ this -> definitions as $ name => $ parameter ) { if ( isset ( $ this -> items [ $ name ] ) ) { continue ; } // In the case of Parameters which do not accept values (ie. optional flags), we explicitly default them // to a boolean false, opposed to a boolean true when they are actually set in input. $ this -> items [ $ name ] = ( $ value = $ parameter -> getValue ( ) ) ? $ value -> getDefault ( ) : false ; } return $ this ; }
Finalizes the Collection, populating it with Parameters that have not been explicitly set, but
have defined default values.

@return  $this
Finalizes the Collection populating it with Parameters that have not been explicitly set but have defined default values .