original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Finalizes the Collection, populating it with Parameters that have not been explicitly set, but
  have defined default values.
  
  @return  $this
docstring_tokens: Finalizes the Collection populating it with Parameters that have not been explicitly set but have defined default values .